stylo2gg
: Visualizing Reproducible Stylometryggplot2
opportunities85 papers by “Publius” (Alexander Hamilton, James Madison, and John Jay)
history of authorship research
stylo
by Maciej Eder et al.stylo
Problems — and stylo2gg
logging — with replication
modifications — with successive exploration
graphics — using ggplot2
stylo
stylo2gg
ggplot2
opportunitiesfederalist_mfw |>
rename_category("NA", "unknown") |>
stylo2gg(viz = "pca") +
theme_minimal() +
theme(legend.position = c(0.9,0.15),
panel.grid = element_blank(),
plot.title.position = "plot") +
scale_shape_manual(values = 15:18) +
scale_size_manual(values = c(8.5, 9, 7, 10)) +
scale_alpha_manual(values = rep(.5, 4)) +
scale_color_manual(values = c("#E69F00", "#56B4E9", "#009E73", "#CC79A7")) +
labs(title = "Larger, solid points can make relationships easier to understand.",
subtitle = "Setting alpha values is a good idea when solid points overlap.",
x = NULL, y = NULL,
color = "author", shape = "author", alpha = "author", size = "author")
library(ggforce)
library(wesanderson)
federalist_mfw |>
rename_category("NA", "disputed") |>
stylo2gg("pca") +
geom_mark_hull(aes(fill = class,
color = class)) +
geom_mark_hull(aes(group = class,
label = class,
filter = class %in% c("Madison","disputed")),
con.cap = 0,
show.legend = FALSE) +
scale_fill_manual(values = wes_palettes$Darjeeling1[c(1:3,5)]) +
scale_color_manual(values = wes_palettes$Darjeeling1[c(1:3,5)])
pkgdown
siteclawson@gmail.com