library(rainbow) library(ggplot2); theme_set(theme_bw()) library(ggthemes) library(directlabels) theme_update(panel.spacing=grid::unit(0,"lines")) library(cowplot) ## for arranging multiple plots, labeling, etc. library(Hmisc)
library(rainbow) library(ggplot2); theme_set(theme_bw()) library(ggthemes) library(directlabels) theme_update(panel.spacing=grid::unit(0,"lines")) library(cowplot) ## for arranging multiple plots, labeling, etc. library(Hmisc)
stem(mtcars$hp)
## ## The decimal point is 2 digit(s) to the right of the | ## ## 0 | 5677799 ## 1 | 0011111122 ## 1 | 55888888 ## 2 | 123 ## 2 | 556 ## 3 | 4
ggplot(mtcars,aes(cyl,hp,group=cyl))+geom_boxplot()
rainbow::fboxplot(data = ElNino, plot.type = "bivariate", type = "bag", projmethod="PCAproj")
Heer and Bostock (2010)
g0 <- ggplot(OrchardSprays,aes(treatment,decrease))+scale_y_log10() print(plot_grid(g0 + geom_boxplot(), g0 + geom_tufteboxplot()))
ggthemes::geom_tufteboxplot()
g1 <- ggplot(iris,aes(Sepal.Length,Petal.Length,colour=Species, shape=Species))+geom_point() print(plot_grid(g1,direct.label(g1)))
directlabels
packagedirectlabels
package)RColorBrewer
/ColorBrewer, IWantHue: respect dichromats and B&W printouts (see dichromat
& colorblindr & cividis packages Sciani (2018)Some examples (from a screed on "dynamite plots"):
a. the dreaded "dynamite plot". Problems:
b. inferential (point \(\pm\) 2 SE) plot
c. points \(\pm\) 1 and 2 SE
d. points alone
e. boxplots
f. violin plots
Dawson, Robert. 2011. “How Significant Is a Boxplot Outlier.” Journal of Statistics Education 19 (2): 1–12.
Elliott, Kennedy. 2016. “39 Studies About Human Perception in 30 Minutes.” Medium. https://medium.com/@kennelliott/39-studies-about-human-perception-in-30-minutes-4728f9e31a73.
Heer, Jeffrey, and Michael Bostock. 2010. “Crowdsourcing Graphical Perception: Using Mechanical Turk to Assess Visualization Design.” In Proceedings of the SIGCHI Conference on Human Factors in Computing Systems, 203–12. ACM.
McGill, Robert, John W. Tukey, and Wayne A. Larsen. 1978. “Variations of Box Plots.” The American Statistician 32 (1): 12–16. doi:10.2307/2683468.
Sciani, Marco. 2018. “Cividis: Implementation of the Matplotlib ’Viridis’ Color Map in R (Lite Version).” https://github.com/marcosci/cividis.