| datasaurus_dozen_wide {datasauRus} | R Documentation |
Datasaurus Dozen (wide) data
Description
A dataset demonstrating the utility of visualization. These 12 datasets are equal in standard measures: mean, standard deviation, and Pearson's correlation.
Usage
datasaurus_dozen_wide
Format
A data frame with 142 rows and 26 variables:
-
away_x: x-values for the
awaydataset -
away_y: y-values for the
awaydataset -
bullseye_x: x-values for the
bullseyedataset -
bullseye_y: y-values for the
bullseyedataset -
circle_x: x-values for the
circledataset -
circle_y: y-values for the
circledataset -
dino_x: x-values for
dinosaurdataset! -
dino_y: y-values for
dinosaurdataset! -
dots_x: x-values for the
dotsdataset -
dots_y: y-values for the
dotsdataset -
h_lines_x: x-values for the
h_linesdataset -
h_lines_y: y-values for the
h_linesdataset -
high_lines_x: x-values for the
high_linesdataset -
high_lines_y: y-values for the
high_linesdataset -
slant_down_x: x-values for the
slant_downdataset -
slant_down_y: y-values for the
slant_downdataset -
slant_up_x: x-values for the
slant_updataset -
slant_up_y: y-values for the
slant_updataset -
star_x: x-values for the
stardataset -
star_y: y-values for the
stardataset -
v_lines_x: x-values for the
v_linesdataset -
v_lines_y: y-values for the
v_linesdataset -
wide_lines_x: x-values for the
wide_linesdataset -
wide_lines_y: y-values for the
wide_linesdataset -
x_shape_x: x-values for the
x_shapedataset -
x_shape_y: y-values for the
x_shapedataset
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.research.autodesk.com/publications/same-stats-different-graphs/. #nolint
Examples
# Save current settings
state = par("mar", "mfrow")
# Base R Plots
par(mfrow = c(5, 3), mar = c(1, 3, 3, 1))
nms = names(datasaurus_dozen_wide)
for (i in seq(1, 25, by = 2)) {
nm = substr(nms[i], 1, nchar(nms[i]) - 2)
plot(datasaurus_dozen_wide[[nms[i]]],
datasaurus_dozen_wide[[nms[i + 1]]],
xlab = "", ylab = "", main = nm)
}
#reset settings
par(state)