Drawing grouped block diagrams with R language

 bright blue-grey

library(gcookbook) # For the data set
library(tidyverse)

sp1 <- ggplot(ChickWeight, aes(x=Time, y=weight))
sp1 + geom_boxplot(aes(group=Time), fill='lightslategray')

bright blue

sp1 + geom_boxplot(aes(group=Time), fill='lightskyblue')

bright sea blue

sp1 + geom_boxplot(aes(group=Time), fill='lightseagreen')

bright flesh

sp1 + geom_boxplot(aes(group=Time), fill='lightsalmon')

bright pink

sp1 + geom_boxplot(aes(group=Time),fill='lightpink')

bright grey

sp1 + geom_boxplot(aes(group=Time),fill='lightgrey')

bright green

sp1 + geom_boxplot(aes(group=Time), fill='lightgreen')


bright golden yellow

sp1 + geom_boxplot(aes(group=Time),fill='lightgoldenrodyellow')

bright cyan

sp1 + geom_boxplot(aes(group=Time),fill='lightcyan')

sp1 + geom_boxplot(aes(group=Time),fill='lightcoral')


bright blue

sp1 + geom_boxplot(aes(group=Time), fill='lightblue')

References: Practical Receipes for Visualizing Data----R Graphics Cookbook -Winston Chang O'REILLY

Post a Comment (0)
Previous Post Next Post