Skip to content

Commit

Permalink
fix: spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
aravindhebbali committed Nov 28, 2023
1 parent d25fb2e commit 664f473
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions R/rfm-plots.R
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ rfm_plot_heatmap <- function(data, brewer_n = 5, brewer_name = "PuBu",
stop('Sorry! The functionality is not available without installing the required package.', call. = FALSE)
}
} else {
warning("`plot` is not installed. Using `ggplot2` instead to generate the plot!")
warning("`plotly` is not installed. Using `ggplot2` instead to generate the plot!")
p <- rfm_gg_heatmap(mapdata, plot_title, xaxis_label, yaxis_label, brewer_n,
brewer_name, legend_title, print_plot)
}
Expand Down Expand Up @@ -223,7 +223,7 @@ rfm_plot_histogram <- function(rfm_table, metric = "recency",
stop('Sorry! The functionality is not available without installing the required package.', call. = FALSE)
}
} else {
warning("`plot` is not installed. Using `ggplot2` instead to generate the plot!")
warning("`plotly` is not installed. Using `ggplot2` instead to generate the plot!")
p <- rfm_gg_hist(data, hist_bins, hist_color, plot_title, xaxis_label,
yaxis_label, print_plot)
}
Expand Down Expand Up @@ -461,7 +461,7 @@ rfm_plot_order_dist <- function(rfm_table, flip = FALSE, bar_color = NULL,
stop('Sorry! The functionality is not available without installing the required package.', call. = FALSE)
}
} else {
warning("`plot` is not installed. Using `ggplot2` instead to generate the plot!")
warning("`plotly` is not installed. Using `ggplot2` instead to generate the plot!")
p <- rfm_gg_order_dist(data, flip, bar_color, plot_title, xaxis_label,
yaxis_label, ylim_max, bar_labels, bar_label_size)
}
Expand Down
14 changes: 7 additions & 7 deletions R/rfm-segment.R
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ rfm_plot_segment_summary <- function(x, metric = NULL, sort = FALSE,
stop('Sorry! The functionality is not available without installing the required package.', call. = FALSE)
}
} else {
warning("`plot` is not installed. Using `ggplot2` instead to generate the plot!")
warning("`plotly` is not installed. Using `ggplot2` instead to generate the plot!")
p <- rfm_gg_segment_summary(data, metric, sort, ascending, flip,
bar_color, plot_title, xaxis_label,
yaxis_label, axis_label_size, axis_label_angle,
Expand Down Expand Up @@ -411,7 +411,7 @@ rfm_plot_revenue_dist <- function(x, flip = FALSE,
stop('Sorry! The functionality is not available without installing the required package.', call. = FALSE)
}
} else {
warning("`plot` is not installed. Using `ggplot2` instead to generate the plot!")
warning("`plotly` is not installed. Using `ggplot2` instead to generate the plot!")
p <- rfm_gg_revenue_dist(data, colors, legend_labels, flip,
plot_title, xaxis_label, yaxis_label,
axis_label_size, axis_label_angle,
Expand Down Expand Up @@ -570,7 +570,7 @@ rfm_plot_median_recency <- function(rfm_segment_table, sort = FALSE,
stop('Sorry! The functionality is not available without installing the required package.', call. = FALSE)
}
} else {
warning("`plot` is not installed. Using `ggplot2` instead to generate the plot!")
warning("`plotly` is not installed. Using `ggplot2` instead to generate the plot!")
p <- rfm_gg_median(data, bar_color, sort, ascending, flip, plot_title,
xaxis_label, yaxis_label, axis_label_size,
axis_label_angle, bar_labels)
Expand Down Expand Up @@ -653,7 +653,7 @@ rfm_plot_median_frequency <- function(rfm_segment_table, sort = FALSE,
stop('Sorry! The functionality is not available without installing the required package.', call. = FALSE)
}
} else {
warning("`plot` is not installed. Using `ggplot2` instead to generate the plot!")
warning("`plotly` is not installed. Using `ggplot2` instead to generate the plot!")
p <- rfm_gg_median(data, bar_color, sort, ascending, flip, plot_title,
xaxis_label, yaxis_label, axis_label_size,
axis_label_angle, bar_labels)
Expand Down Expand Up @@ -736,7 +736,7 @@ rfm_plot_median_monetary <- function(rfm_segment_table, sort = FALSE,
stop('Sorry! The functionality is not available without installing the required package.', call. = FALSE)
}
} else {
warning("`plot` is not installed. Using `ggplot2` instead to generate the plot!")
warning("`plotly` is not installed. Using `ggplot2` instead to generate the plot!")
p <- rfm_gg_median(data, bar_color, sort, ascending, flip, plot_title,
xaxis_label, yaxis_label, axis_label_size,
axis_label_angle, bar_labels)
Expand Down Expand Up @@ -861,7 +861,7 @@ rfm_plot_segment <- function(table, metric = "customers", interactive = FALSE,
stop('Sorry! The functionality is not available without installing the required package.', call. = FALSE)
}
} else {
warning("`plot` is not installed. Using `ggplot2` instead to generate the plot!")
warning("`plotly` is not installed. Using `ggplot2` instead to generate the plot!")
p <- rfm_gg_segment(table, metric, print_plot)
}
}
Expand Down Expand Up @@ -981,7 +981,7 @@ rfm_plot_segment_scatter <- function(segments, x = "monetary", y = "recency",
stop('Sorry! The functionality is not available without installing the required package.', call. = FALSE)
}
} else {
warning("`plot` is not installed. Using `ggplot2` instead to generate the plot!")
warning("`plotly` is not installed. Using `ggplot2` instead to generate the plot!")
p <- rfm_gg_segment_scatter(segments, x_data, y_data, plot_title,
legend_title, xaxis_label, yaxis_label)
}
Expand Down

0 comments on commit 664f473

Please sign in to comment.