15 Matching Annotations
1. Nov 2023
2. www.sthda.com www.sthda.com
1. p + theme(legend.position="top")

`theme(legend.position = "none")` to remove legend

#### URL

3. Apr 2023
4. datavizpyr.com datavizpyr.com
1. guides(color=guide_legend(nrow=2, byrow=TRUE))

#### URL

5. www.statology.org www.statology.org
1. labs(fill='Legend Title')

command to change the title of the legend

#### URL

6. Nov 2021
7. www.cedricscherer.com www.cedricscherer.com
1. geom_point( ## draw horizontal lines instead of points shape = 95, size = 10, alpha = .2

I didn't know there were > 95 shape values. The documentation only showed 24! https://ggplot2.tidyverse.org/reference/scale_shape.html

#### URL

8. bookdown.dongzhuoer.com bookdown.dongzhuoer.com
1. direct labelling”, in which the plot region itself contains the labels for groups of points instead of using a legend. This usually makes the plot easier to read because it puts the labels closer to the data.

#### URL

9. ggplot2-book.org ggplot2-book.org

#### URL

10. Aug 2021
11. cmdlinetips.com cmdlinetips.com
1. scale_x_discrete(guide = guide_axis(n.dodge = 2))

With guide_axis(), we can add dodge to our axis label texts to avoid overlapping texts. In the code below, we have used guide_axis() function with n.dodge=2 inside scale_x_discrete() to dodge overlapping text on x-axis.

#### URL

12. Dec 2020
13. cedricscherer.netlify.app cedricscherer.netlify.app
1. occupy the fill scale with a slightly darker version of the palette used for color.

Using colorspace package.

geom_boxplot(aes(color = season, fill = after_scale(desaturate(lighten(color, .6), .6))), size = 1)

#### URL

14. Nov 2020
15. medium.com medium.com
1. Let’s fit regression line to our model:

plot() and lines() seem to plot regression lines

• Can they be added to a ggplot?
• Can they be used to print R2 on the plot?

#### URL

16. Oct 2020
17. stackoverflow.com stackoverflow.com
1. If you're using ggplot, you can use scales::pseudo_log_trans() as your transformation object. This will replace your -inf with 0.

#### URL

18. www.sciencedirect.com www.sciencedirect.com
1. All figures were created using R Statistical Computing Software version 3.6.3 (R Core Team, 2020), relying primarily on the dplyr package (Wickham et al., 2015) for data manipulation and the ggplot2 package (Wickham 2016) for plotting. The code used to create each figure can be found at https://github.com/mkc9953/SARS-CoV-2-WW-EPI/tree/master.

#### URL

19. Mar 2018
20. zevross.com zevross.com
1. Beautiful plotting in R: A ggplot2 cheatsheet

#### URL

21. www.r-bloggers.com www.r-bloggers.com
1. Boxplots and Beyond – Part II: Asymmetry

#### URL

22. Jan 2018
23. stackoverflow.com stackoverflow.com
1. To understand why the DPI is important, consider these two plots:

#### URL

24. Nov 2017
25. www.wias-berlin.de www.wias-berlin.de
1. additional dimension may be of course time, but also any other changing parameter suchas voltage or current or the change of material or geometric parameters

Like in Grammar of Graphics: mapping data to scales