Slide 17
Slide 17 text
plots
๏Challenge: A consistent and branded look for plots
๏Solution: De
fi
ne theme_openintro() and rede
fi
ne ggplot2 defaults
🔗 bit.ly/openintro-useR2021
ggplot2::update_geom_defaults("point", list(color = openintro::IMSCOL["blue","full"],
fill = openintro::IMSCOL["blue","full"]))
ggplot2::update_geom_defaults("bar", list(fill = openintro::IMSCOL["blue","full"],
color = "#FFFFFF"))
ggplot2::update_geom_defaults("col", list(fill = openintro::IMSCOL["blue","full"],
color = "#FFFFFF"))
ggplot2::update_geom_defaults("boxplot", list(color = openintro::IMSCOL["blue","full"]))
ggplot2::update_geom_defaults("density", list(color = openintro::IMSCOL["blue","full"]))
ggplot2::update_geom_defaults("line", list(color = openintro::IMSCOL["gray", "full"]))
ggplot2::update_geom_defaults("smooth", list(color = openintro::IMSCOL["gray", "full"]))
ggplot2::update_geom_defaults("dotplot", list(color = openintro::IMSCOL["blue","full"],
fill = openintro::IMSCOL["blue","full"]))