From 908e9221bc1a5fa06fc9e5f6d1cef98386fd5928 Mon Sep 17 00:00:00 2001 From: ytakemon Date: Wed, 13 Sep 2023 08:47:38 -0700 Subject: [PATCH] removing dot ref before its explanation --- episodes/06-data-visualization.Rmd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/episodes/06-data-visualization.Rmd b/episodes/06-data-visualization.Rmd index 37db05815..689683118 100644 --- a/episodes/06-data-visualization.Rmd +++ b/episodes/06-data-visualization.Rmd @@ -266,7 +266,7 @@ ggplot(data = variants, aes(x = POS, y = MQ, color = sample_id)) + geom_point() + labs(x = "Base Pair Position", y = "Mapping Quality (MQ)") + - facet_grid(. ~ sample_id) + facet_grid(~ sample_id) ``` This looks okay, but it would be easier to read if the plot facets were stacked vertically rather than horizontally. The `facet_grid` geometry allows you to explicitly specify how you want your plots to be arranged via formula notation (`rows ~ columns`; the dot (`.`) indicates every other variable in the data i.e., no faceting on that side of the formula). @@ -395,7 +395,7 @@ for inspiration. Here are some ideas: - See if you can change the size or shape of the plotting symbol. - Can you find a way to change the name of the legend? What about its labels? -- Try using a different color palette (see the [Cookbook for R](https://www.cookbook-r.com/Graphs/Colors_\(ggplot2\)/). +- Try using a different color palette (see the [Cookbook for R](https://www.cookbook-r.com/Graphs/Colors_\(ggplot2\)/)). ::::::::::::::::::::::::::::::::::::::::::::::::::