diff --git a/04-advanced-topics/quantile_normalize_own_data_adv_topics_01.Rmd b/04-advanced-topics/quantile_normalize_own_data_adv_topics_01.Rmd
index c9b7a38c..2117894a 100644
--- a/04-advanced-topics/quantile_normalize_own_data_adv_topics_01.Rmd
+++ b/04-advanced-topics/quantile_normalize_own_data_adv_topics_01.Rmd
@@ -175,10 +175,10 @@ exprs_long_df <- expression_df %>%
```{r}
exprs_long_df %>%
- ggplot2::ggplot(ggplot2::aes(x = value, fill = Sample)) +
- ggplot2::geom_density(alpha = 0.2) +
- ggplot2::theme_bw() +
- ggplot2::labs(title = "Before quantile normalization",
+ ggplot(aes(x = value, fill = Sample)) +
+ geom_density(alpha = 0.2) +
+ theme_bw() +
+ labs(title = "Before quantile normalization",
x = "expression value")
```
@@ -197,10 +197,10 @@ qn_long_df <- qn_df %>%
```{r}
qn_p <- qn_long_df %>%
- ggplot2::ggplot(ggplot2::aes(x = value, fill = Sample)) +
- ggplot2::geom_density(alpha = 0.2) +
- ggplot2::theme_bw() +
- ggplot2::labs(title = "After quantile normalization",
+ ggplot(aes(x = value, fill = Sample)) +
+ geom_density(alpha = 0.2) +
+ theme_bw() +
+ labs(title = "After quantile normalization",
x = "expression value")
qn_p
```
@@ -210,10 +210,10 @@ We can use `facet_wrap` to get a better look.
```{r}
qn_p +
- ggplot2::facet_wrap(~ Sample, ncol = 4) +
- ggplot2::theme(legend.position = "none",
- strip.background = ggplot2::element_blank(),
- strip.text = ggplot2::element_blank())
+ facet_wrap(~ Sample, ncol = 4) +
+ theme(legend.position = "none",
+ strip.background = element_blank(),
+ strip.text = element_blank())
```
Quantile normalization was successful.
diff --git a/04-advanced-topics/validate_differential_expression_adv_topics_00_author_de.Rmd b/04-advanced-topics/validate_differential_expression_adv_topics_00_author_de.Rmd
index 4b4305d8..7faeb0bc 100644
--- a/04-advanced-topics/validate_differential_expression_adv_topics_00_author_de.Rmd
+++ b/04-advanced-topics/validate_differential_expression_adv_topics_00_author_de.Rmd
@@ -180,10 +180,10 @@ test.probe <- author.df %>%
# Make a dataframe with the group information
box.plot <- data.frame(test.probe, subgroup) %>%
# Use ggplot2 to make a boxplot from this info
-ggplot2::ggplot(., ggplot2::aes(x = subgroup, y = test.probe)) +
- ggplot2::geom_boxplot() +
- ggplot2::theme_classic() +
- ggplot2::ggtitle(paste("Probe ID:", stats$affy_probe_ids[32]))
+ggplot(., aes(x = subgroup, y = test.probe)) +
+ geom_boxplot() +
+ theme_classic() +
+ ggtitle(paste("Probe ID:", stats$affy_probe_ids[32]))
# Print the plot here
box.plot
diff --git a/04-advanced-topics/validate_differential_expression_adv_topics_01.Rmd b/04-advanced-topics/validate_differential_expression_adv_topics_01.Rmd
index 65bc54ec..46a53aba 100644
--- a/04-advanced-topics/validate_differential_expression_adv_topics_01.Rmd
+++ b/04-advanced-topics/validate_differential_expression_adv_topics_01.Rmd
@@ -391,10 +391,10 @@ test.gene <- refine.bio.df %>%
box.plot <- data.frame(test.gene, subgroup = metadata$subgroup) %>%
# Use ggplot2 to make a boxplot from this info
-ggplot2::ggplot(., ggplot2::aes(x = subgroup, y = test.gene)) +
- ggplot2::geom_boxplot() +
- ggplot2::theme_classic() +
- ggplot2::ggtitle(paste("refine.bio up gene test:", refine.bio.up.genes[12]))
+ggplot(., aes(x = subgroup, y = test.gene)) +
+ geom_boxplot() +
+ theme_classic() +
+ ggtitle(paste("refine.bio up gene test:", refine.bio.up.genes[12]))
# Print the plot here
box.plot
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 9c86d4f3..a0cd8bf7 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -199,6 +199,11 @@ This will help fix some spacing and formatting issues automatically.
- **Gene names**: When being referenced as a variable name, as in "let's extract the `ENSG0000000123` data", backticks should be used.
But if the gene is being referred to more as a concept or something that is not specifically referring to code, the backticks can/should be dropped.
+- `::` or `library()` - for most packages there is no stipulations on which strategy to use.
+We like to be able to show both strategies.
+However, for ggplot2, we always use `library(ggplot2)` to avoid the repetition needed for making a plot that could lead to troubleshooting problems for users that may be trying to modify plots.
+See [issue #211](https://github.com/AlexsLemonade/refinebio-examples/issues/211).
+
#### No manual section numbering
Numbering will be done automatically in rendering; so no numbers should be put on the sections.
diff --git a/components/_navbar.html b/components/_navbar.html
index 55bc3fde..84903bf0 100644
--- a/components/_navbar.html
+++ b/components/_navbar.html
@@ -36,7 +36,7 @@