Change Axis Tick Labels Of Boxplot In Base R Ggplot2 2 Examples
To display graphs only in gray scale, use scale_fill_grey () # Use grayscale pattern for the boxes ggplot (ToothGrowth, aes (x=factor (dose), y=len, fill=factor (dose))) geom_boxplot () scale_fill_grey () By default, the boxes are colored white and have black outline You can change that by using fill and color argumentCreating plots in R using ggplot2 part 10 boxplots This is the tenth tutorial in a series on using ggplot2 I am creating with Mauricio Vargas Sepúlveda In this tutorial we will demonstrate some of the many options the ggplot2 package has for creating and customising boxplots We will use R's airquality dataset in the datasets package
