
Twelve From Slant Alternate (wide) data
Source:R/datasaurus-package.R
twelve_from_slant_alternate_wide.RdA dataset demonstrating the utility of visualization. These 12 datasets are equal in non-parametric measures: median, interquartile range, and Spearman's rank correlation.
Format
A data frame with 182 rows and 24 variables:
bullseye_x: x-values for the
bullseyedatasetbullseye_y: y-values for the
bullseyedatasetcircle_x: x-values for the
circledatasetcircle_y: y-values for the
circledatasetdots_x: x-values for the
dotsdatasetdots_y: y-values for the
dotsdataseth_lines_x: x-values for the
h_linesdataseth_lines_y: y-values for the
h_linesdatasethigh_lines_x: x-values for the
high_linesdatasethigh_lines_y: y-values for the
high_linesdatasetslant_x: x-values for the
slantdatasetslant_y: y-values for the
slantdatasetslant_down_x: x-values for the
slant_downdatasetslant_down_y: y-values for the
slant_downdatasetslant_up_x: x-values for the
slant_updatasetslant_up_y: y-values for the
slant_updatasetstar_x: x-values for the
stardatasetstar_y: y-values for the
stardatasetv_lines_x: x-values for the
v_linesdatasetv_lines_y: y-values for the
v_linesdatasetwide_lines_x: x-values for the
wide_linesdatasetwide_lines_y: y-values for the
wide_linesdatasetx_shape_x: x-values for the
x_shapedatasetx_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")
# plot
par(mfrow = c(4, 3), mar = c(1, 3, 3, 1))
nms = names(twelve_from_slant_alternate_wide)
for (i in seq(1, 23, by = 2)) {
nm = substr(nms[i], 1, nchar(nms[i]) - 2)
plot(twelve_from_slant_alternate_wide[[nms[i]]],
twelve_from_slant_alternate_wide[[nms[i + 1]]],
xlab = "", ylab = "", main = nm)
}
#reset settings
par(state)