All Projects → EmilHvitfeldt → gganonymize

EmilHvitfeldt / gganonymize

Licence: Unknown, MIT licenses found Licenses found Unknown LICENSE MIT LICENSE.md
Anonymize the labels and text in a ggplot2

Programming Languages

r
7636 projects

Projects that are alternatives of or similar to gganonymize

ggplot2 themes in github
A generated list of repos containing themes/styles for ggplot2
Stars: ✭ 43 (+2.38%)
Mutual labels:  ggplot2
hockeystick
Download and Visualize Essential Global Heating Data in R
Stars: ✭ 42 (+0%)
Mutual labels:  ggplot2
tvthemes
ggplot2 themes and palettes based on your favorite TV shows
Stars: ✭ 120 (+185.71%)
Mutual labels:  ggplot2
schoenberg
ggplot-based graphics and useful functions for GAMs fitted using the mgcv package
Stars: ✭ 25 (-40.48%)
Mutual labels:  ggplot2
aRtsy
An R package for making generative art using 'ggplot2'.
Stars: ✭ 142 (+238.1%)
Mutual labels:  ggplot2
metallicaRt
R package of colour palettes based on Metallica studio album covers.
Stars: ✭ 18 (-57.14%)
Mutual labels:  ggplot2
R4ds Exercise Solutions
Exercise solutions to "R for Data Science"
Stars: ✭ 226 (+438.1%)
Mutual labels:  ggplot2
PlotsOfData
Shiny App for comparison of samples
Stars: ✭ 47 (+11.9%)
Mutual labels:  ggplot2
R-Data-Visualization
D-Lab's 3 hour introduction to data visualization with R. Learn how to create histograms, bar plots, box plots, scatter plots, compound figures, and more using ggplot2 and cowplot.
Stars: ✭ 24 (-42.86%)
Mutual labels:  ggplot2
sportyR
R package for drawing regulation playing surfaces for several sports
Stars: ✭ 84 (+100%)
Mutual labels:  ggplot2
gglaplot
Makes graphics in the GLA style using ggplot2
Stars: ✭ 15 (-64.29%)
Mutual labels:  ggplot2
CSSS508
CSSS508: Introduction to R for Social Scientists
Stars: ✭ 28 (-33.33%)
Mutual labels:  ggplot2
kushner eb5 census
Jared Kushner and his partners used a program meant for job-starved areas to build a luxury skyscraper
Stars: ✭ 49 (+16.67%)
Mutual labels:  ggplot2
ggplotify
ggplot everything
Stars: ✭ 89 (+111.9%)
Mutual labels:  ggplot2
grcdr
A collection of ggplot2 extensions and scripts for graphics in R
Stars: ✭ 14 (-66.67%)
Mutual labels:  ggplot2
Ggfittext
🔠 ggplot2 geoms to fit text into boxes
Stars: ✭ 233 (+454.76%)
Mutual labels:  ggplot2
30DayMapChallenge
My contributions to the #30DayMapChallenge 2019, a daily challenge focusing on spatial visualizations happening throughout November.
Stars: ✭ 170 (+304.76%)
Mutual labels:  ggplot2
Manu
This package provides colour palettes derived from birds native to New Zealand
Stars: ✭ 70 (+66.67%)
Mutual labels:  ggplot2
compbench
⌛ Benchmark and visualization of various compression algorithms
Stars: ✭ 21 (-50%)
Mutual labels:  ggplot2
emojifont
🍭Emoji and fontawesom in both base and ggplot2 graphics
Stars: ✭ 61 (+45.24%)
Mutual labels:  ggplot2

gganonymize

Travis build status

The goal of gganonymize is to anonymize the labels and text in a ggplot2 object in such a way that vizualizations about sensitive information can more easily be shared and critiqued.

Installation

You can install the development version from Github using devtools:

# install.packages("devtools")
devtools::install_github("EmilHvitfeldt/gganonymize")

Examples

gganonymize will replace the text in the title, subtitle, caption and tag with similar length text while ignoring numerics.

library(ggplot2)
library(gganonymize)

ggg <- ggplot(mtcars, aes(as.factor(cyl))) +
  geom_bar() +
  labs(title = "Test title",
       subtitle = "Test subtitle, this one have a lot lot lot lot lot more text then the rest",
       caption = "Test caption",
       tag = 1) +
  facet_wrap(~vs)

gganonomize(ggg)

It will respect names of of columns used in multiple settings such that the legend will match.

ggg <- ggplot(mtcars, aes(mpg, disp, color = disp, shape = factor(am))) +
  geom_point()

gganonomize(ggg)

Likewise will it sepect names in character/factor variables.

ggg <- ggplot(mpg, aes(class, fill = class)) +
  geom_bar() + 
  labs(title = "Super sensitive title",
       subtitle = "This part is even more sensitive, I hope no one will get to read it")

gganonomize(ggg)

and in facet labels.

ggg <- ggplot(mpg, aes(cty, displ, color = class)) +
  geom_point() +
  facet_wrap(~ class)

gganonomize(ggg)

This also extends to geom_label,

ggg <- ggplot(iris, aes(Sepal.Length, Sepal.Width, label = Species)) +
  geom_label()

gganonomize(ggg)

and geom_text.

ggg <- ggplot(iris, aes(Sepal.Length, Sepal.Width, label = Species)) +
  geom_text()

gganonomize(ggg)

Now with as much mtcars as possible

ggg <- ggplot(mtcars, aes(as.factor(cyl))) +
  geom_bar() +
  labs(title = "Test title",
       subtitle = "Test subtitle, this one have a lot lot lot lot lot more text then the rest",
       caption = "Test caption",
       tag = 1) +
  facet_wrap(~vs)

mtcarsize(ggg)

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].