box_plots

0th

Percentile

Box plot data

This dataset is the box plot data produced by Matjeka & Fitzmaurice to demonstrate applicability of their process.

Keywords
datasets
Usage
box_plots
Format

A data frame with 2484 rows and 5 variables:

  • left: data pulled to the left

  • lines: data with arbitrary spikes along a range

  • normal: normally distributed data

  • right: data pulled to the right

  • split: split data

References

Matejka, J., & Fitzmaurice, G. (2017). Same Stats, Different Graphs: Generating Datasets with Varied Appearance and Identical Statistics through Simulated Annealing. CHI 2017 Conference proceedings: ACM SIGCHI Conference on Human Factors in Computing Systems. Retrieved from https://www.autodeskresearch.com/publications/samestats.

Aliases
  • box_plots
Examples
# NOT RUN {
summary(box_plots)

## base plot

#save current settings
state <- par("mar", "mfrow")

par(mfrow = c(5, 2), mar=c(1,2,2,1))

nms <- names(box_plots)

for (i in 1:5){
  nm <- nms[i]
  hist(box_plots[[nms[i]]],
       breaks = 100,
       main = nm)
  boxplot(box_plots[[nms[i]]],
          horizontal = TRUE)
}


#reset settings
par(state)

## ggplot
if(require(ggplot2)){
  ggplot(box_plots, aes(x=left))+
    geom_density()
  ggplot(box_plots, aes(x=lines))+
    geom_density()
  ggplot(box_plots, aes(x=normal))+
    geom_density()
  ggplot(box_plots, aes(x=right))+
    geom_density()
  ggplot(box_plots, aes(x=split))+
    geom_density()
}
# }
Documentation reproduced from package datasauRus, version 0.1.4, License: MIT + file LICENSE

Community examples

Looks like there are no examples yet.