All Projects β†’ EmilHvitfeldt β†’ Ggpage

EmilHvitfeldt / Ggpage

Licence: other
Creates Page Layout Visualizations in R πŸ“„πŸ“„πŸ“„

Programming Languages

r
7636 projects

Projects that are alternatives of or similar to Ggpage

Hrbrthemes
πŸ” Opinionated, typographic-centric ggplot2 themes and theme components
Stars: ✭ 899 (+193.79%)
Mutual labels:  ggplot2, rstats, data-visualization, datavisualization
Waffle
🍁 Make waffle (square pie) charts in R
Stars: ✭ 614 (+100.65%)
Mutual labels:  ggplot2, rstats, data-visualization, datavisualization
Tidytuesday
πŸ“Š My contributions to the #TidyTuesday challenge
Stars: ✭ 410 (+33.99%)
Mutual labels:  ggplot2, rstats, dataviz
Moderndive book
Statistical Inference via Data Science: A ModernDive into R and the Tidyverse
Stars: ✭ 527 (+72.22%)
Mutual labels:  ggplot2, rstats, data-visualization
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 (-94.77%)
Mutual labels:  ggplot2, dataviz, datavisualization
Dex
Dex : The Data Explorer -- A data visualization tool written in Java/Groovy/JavaFX capable of powerful ETL and publishing web visualizations.
Stars: ✭ 1,238 (+304.58%)
Mutual labels:  data-visualization, dataviz, datavisualization
DataViz-Teaching
πŸ“ˆ Visualizations for DataViz Teaching
Stars: ✭ 29 (-90.52%)
Mutual labels:  ggplot2, dataviz, rstats
tidytuesday
πŸ“Š πŸ–ŒοΈ Data visualization collection
Stars: ✭ 70 (-77.12%)
Mutual labels:  dataviz, rstats, datavisualization
Vegalite
R ggplot2 "bindings" for Vega-Lite
Stars: ✭ 157 (-48.69%)
Mutual labels:  rstats, data-visualization, datavisualization
Ggplot Courses
πŸ‘¨β€πŸ« ggplot2 Teaching Material
Stars: ✭ 40 (-86.93%)
Mutual labels:  ggplot2, rstats, dataviz
Soccergraphr
Soccer Analytics in R using OPTA data
Stars: ✭ 42 (-86.27%)
Mutual labels:  ggplot2, rstats, data-visualization
Plotly
An interactive graphing library for R
Stars: ✭ 2,096 (+584.97%)
Mutual labels:  ggplot2, rstats, data-visualization
Ggthemr
Themes for ggplot2.
Stars: ✭ 697 (+127.78%)
Mutual labels:  ggplot2, rstats, data-visualization
Gganimate
A Grammar of Animated Graphics
Stars: ✭ 1,744 (+469.93%)
Mutual labels:  ggplot2, rstats, data-visualization
Slopegraph
Edward Tufte-Inspired Slopegraphs
Stars: ✭ 166 (-45.75%)
Mutual labels:  ggplot2, data-visualization, dataviz
scclusteval
Single Cell Cluster Evaluation
Stars: ✭ 57 (-81.37%)
Mutual labels:  ggplot2, rstats
cusumcharter
Easier CUSUM control charts. Returns simple CUSUM statistics, CUSUMs with control limit calculations, and function to generate faceted CUSUM Control Charts
Stars: ✭ 17 (-94.44%)
Mutual labels:  ggplot2, rstats
aws-mlu-explain
Visual, Interactive Articles About Machine Learning: https://mlu-explain.github.io/
Stars: ✭ 46 (-84.97%)
Mutual labels:  dataviz, datavisualization
dataviz
Course materials for Kieran Healy's rstudio::conf 2020 data visualization workshop
Stars: ✭ 75 (-75.49%)
Mutual labels:  ggplot2, dataviz
SWDchallenge
πŸ“ˆ My contributions to the #SWDchallenge
Stars: ✭ 20 (-93.46%)
Mutual labels:  ggplot2, dataviz

ggpage

Travis build status AppVeyor build status Coverage status CRAN status

ggpage is a package to create pagestyled visualizations of text based data. It uses ggplot2 and final returns are ggplot2 objects.

Version 0.2.0

In this new version I have worked to include a lot of use cases that wasn’t available in the first version. These new elements are previewed in the vignette.

Installation

You can install the released version of ggpage from CRAN with:

install.packages("ggpage")

or you can install the developmental version of ggpage from github with:

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

Example

The package includes The Tinder-box by H.C. Andersen for examples.

library(tidyverse)
#> Warning: replacing previous import 'dplyr::vars' by 'rlang::vars' when
#> loading 'dbplyr'
library(ggpage)

head(tinderbox, 10)
#> # A tibble: 10 x 2
#>    text                                                        book        
#>    <chr>                                                       <chr>       
#>  1 "A soldier came marching along the high road: \"Left, righ… The tinder-…
#>  2 had his knapsack on his back, and a sword at his side; he … The tinder-…
#>  3 and was now returning home. As he walked on, he met a very… The tinder-…
#>  4 witch in the road. Her under-lip hung quite down on her br… The tinder-…
#>  5 "and said, \"Good evening, soldier; you have a very fine s… The tinder-…
#>  6 knapsack, and you are a real soldier; so you shall have as… The tinder-…
#>  7 "you like.\""                                               The tinder-…
#>  8 "\"Thank you, old witch,\" said the soldier."               The tinder-…
#>  9 "\"Do you see that large tree,\" said the witch, pointing … The tinder-…
#> 10 "beside them. \"Well, it is quite hollow inside, and you m… The tinder-…

The basic workflow with ggpage is using either

  • ggpage_quick for a quick one function call plot or,
  • combining ggpage_build and ggpage_plot to do analysis (NLP for example) before the final plot is produced.

For a simple demonstration we apply ggpage_quick to our tinderbox object. It is important that the data.frame that is used have the text in a column named β€œtext”.

ggpage_quick(tinderbox)
#> Warning: replacing previous import 'dplyr::vars' by 'rlang::vars' when
#> loading 'tidytext'


# Also pipeable
# tinderbox %>% ggpage_quick()

The same result would be achieved by using

tinderbox %>% 
  ggpage_build() %>% 
  ggpage_plot()

But this approach allows us to introduce more code between ggpage_build and ggpage_plot giving us multiple more ways to enhance the plots

tinderbox %>%
  ggpage_build() %>%
  mutate(long_word = stringr::str_length(word) > 8) %>%
  ggpage_plot(aes(fill = long_word)) +
  labs(title = "Longer words throughout The Tinder-box") +
  scale_fill_manual(values = c("grey70", "blue"),
                    labels = c("8 or less", "9 or more"),
                    name = "Word length")

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