erocoar / Ggpol
Licence: other
π Parliament diagrams and more for ggplot2
Stars: β 71
Programming Languages
r
7636 projects
Projects that are alternatives of or similar to Ggpol
Gghalves
βοΈ Easy half-half geoms in ggplot2
Stars: β 174 (+145.07%)
Mutual labels: ggplot2, ggplot-extension, dataviz
30diasdegraficos
30 tipos de grΓ‘ficos hechos con R, con datos y cΓ³digo reproducible.
Stars: β 47 (-33.8%)
Mutual labels: ggplot2, dataviz
Ggplot Courses
π¨βπ« ggplot2 Teaching Material
Stars: β 40 (-43.66%)
Mutual labels: ggplot2, dataviz
Ggsignif
Easily add significance brackets to your ggplots
Stars: β 322 (+353.52%)
Mutual labels: ggplot2, ggplot-extension
DataViz-Teaching
π Visualizations for DataViz Teaching
Stars: β 29 (-59.15%)
Mutual labels: ggplot2, dataviz
Rstudio TableContest 2020
πΊ Table showing an "Overview and Series Trends of the Best TV Shows on IMDb" β My Contribution to the Rstudio Table Contest 2020
Stars: β 16 (-77.46%)
Mutual labels: ggplot2, dataviz
Ggpage
Creates Page Layout Visualizations in R πππ
Stars: β 306 (+330.99%)
Mutual labels: ggplot2, dataviz
ggbg
Miscellaneous Ggplot2 Extensions
Stars: β 21 (-70.42%)
Mutual labels: ggplot2, ggplot-extension
Ggalt
π Extra Coordinate Systems, Geoms, Statistical Transformations & Scales for 'ggplot2'
Stars: β 561 (+690.14%)
Mutual labels: ggplot2, ggplot-extension
SWDchallenge
π My contributions to the #SWDchallenge
Stars: β 20 (-71.83%)
Mutual labels: ggplot2, dataviz
dataviz
Course materials for Kieran Healy's rstudio::conf 2020 data visualization workshop
Stars: β 75 (+5.63%)
Mutual labels: ggplot2, dataviz
Ggstatsplot
Enhancing `ggplot2` plots with statistical analysis ππ¨π£
Stars: β 1,121 (+1478.87%)
Mutual labels: ggplot-extension, dataviz
ggdogs
The geom you always wished for adding dogs to ggplot2
Stars: β 28 (-60.56%)
Mutual labels: ggplot2, ggplot-extension
Ggpointdensity
π π Introduces geom_pointdensity(): A Cross Between a Scatter Plot and a 2D Density Plot.
Stars: β 286 (+302.82%)
Mutual labels: ggplot2, ggplot-extension
Hrbrthemes
π Opinionated, typographic-centric ggplot2 themes and theme components
Stars: β 899 (+1166.2%)
Mutual labels: ggplot2, ggplot-extension
Tidytuesday
π My contributions to the #TidyTuesday challenge
Stars: β 410 (+477.46%)
Mutual labels: ggplot2, dataviz
Ggdistribute
ggplot2 extension for plotting distributions
Stars: β 16 (-77.46%)
Mutual labels: ggplot2, ggplot-extension
About
ggpol
adds parliament diagrams and various other visualizations and convenience functions to ggplot2
.
Installation
ggpol
can be installed via CRAN:
install.packages("ggpol")
Alternatively, the development version can be installed via GitHub:
if (!require(devtools)) {
install.packages('devtools')
}
devtools::install_github('erocoar/ggpol')
Selected Features
Below are two functions added by ggpol
. For a full overview with applications, please refer to the vignette.
geom_parliament
draws a parliament diagram, clustering points along an arc by parties with each point representing a single member of parliament.
bt <- data.frame(
parties = factor(c("CDU", "CSU", "AfD", "FDP", "SPD",
"Linke", "Gruene", "Fraktionslos"),
levels = c("CDU", "CSU", "AfD", "FDP", "SPD",
"Linke", "Gruene", "Fraktionslos")),
seats = c(200, 46, 92, 80, 153, 69, 67, 2),
colors = c("black", "blue", "lightblue", "yellow",
"red","purple", "green", "grey"),
stringsAsFactors = FALSE)
ggplot(bt) +
geom_parliament(aes(seats = seats, fill = parties), color = "black") +
scale_fill_manual(values = bt$colors, labels = bt$parties) +
coord_fixed() +
theme_void()
geom_boxjitter
produces a hybrid of box- and scatterplot.
df <- data.frame(score = rgamma(150, 4, 1),
gender = sample(c("M", "F"), 150, replace = TRUE),
genotype = factor(sample(1:3, 150, replace = TRUE)))
ggplot(df) + geom_boxjitter(aes(x = genotype, y = score, fill = gender),
jitter.shape = 21, jitter.color = NA,
jitter.params = list(height = 0, width = 0.04),
outlier.color = NA, errorbar.draw = TRUE) +
scale_fill_manual(values = c("#ecb21e", "#812e91")) +
theme_minimal()
Roadmap
If you would like to see a certain feature, please file an issue with a detailed description.
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].