Skip to content

Commit a4264c4

Browse files
authored
add ggplot2 prefix (#860)
Fixes #859
1 parent 5dd5a1f commit a4264c4

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

R/tm_a_pca.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,7 @@ srv_a_pca <- function(id, data, reporter, filter_panel_api, dat, plot_height, pl
611611
)
612612

613613
cols <- c(getOption("ggplot2.discrete.colour"), c("lightblue", "darkred", "black"))[1:3]
614-
elbow_plot <- ggplot2::ggplot(mapping = aes_string(x = "component", y = "value")) +
614+
elbow_plot <- ggplot2::ggplot(mapping = ggplot2::aes_string(x = "component", y = "value")) +
615615
ggplot2::geom_bar(
616616
ggplot2::aes(fill = "Single variance"),
617617
data = dplyr::filter(elb_dat, metric == "Proportion of Variance"),

R/tm_g_bivariate.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -893,7 +893,7 @@ bivariate_ggplot_call <- function(x_class,
893893
} else {
894894
plot_call <- reduce_plot_call(
895895
plot_call,
896-
quote(ggplot2::geom_histogram(bins = 30, aes(y = ggplot2::after_stat(density)))),
896+
quote(ggplot2::geom_histogram(bins = 30, ggplot2::aes(y = ggplot2::after_stat(density)))),
897897
quote(ggplot2::geom_density(ggplot2::aes(y = ggplot2::after_stat(density)))),
898898
quote(ggplot2::ylab("Density"))
899899
)

R/tm_g_distribution.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -814,7 +814,7 @@ srv_distribution <- function(id,
814814
)
815815
} else if (length(s_var) != 0 && length(g_var) == 0) {
816816
substitute(
817-
expr = ggplot2::ggplot(ANL, aes(dist_var_name, col = s_var_name)) +
817+
expr = ggplot2::ggplot(ANL, ggplot2::aes(dist_var_name, col = s_var_name)) +
818818
ggplot2::geom_histogram(
819819
position = "identity", ggplot2::aes(y = ggplot2::after_stat(m_type), fill = s_var),
820820
bins = bins_var, alpha = 0.3

R/tm_variable_browser.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -715,7 +715,7 @@ plot_var_summary <- function(var,
715715
var <- if (isTRUE(remove_NA_hist)) as.vector(stats::na.omit(var)) else var
716716
ggplot2::ggplot(data.frame(var), ggplot2::aes(x = forcats::fct_infreq(as.factor(var)))) +
717717
ggplot2::geom_bar(
718-
stat = "count", aes(fill = ifelse(is.na(var), "withcolor", "")), show.legend = FALSE
718+
stat = "count", ggplot2::aes(fill = ifelse(is.na(var), "withcolor", "")), show.legend = FALSE
719719
) +
720720
ggplot2::scale_fill_manual(values = c("gray50", "tan"))
721721
}

0 commit comments

Comments
 (0)