Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Work through Cedric's wonderful ggplot2 examples #13

Open
andrewcstewart opened this issue Dec 9, 2020 · 0 comments
Open

Work through Cedric's wonderful ggplot2 examples #13

andrewcstewart opened this issue Dec 9, 2020 · 0 comments
Labels
plot types Types of plots to try

Comments

@andrewcstewart
Copy link
Owner

andrewcstewart commented Dec 9, 2020

https://cedricscherer.netlify.app/2019/08/05/a-ggplot2-tutorial-for-beautiful-plotting-in-r/
image

Copied from the blog post for convenience:

Preparation {#prep}

  • You can find the Rmarkdown script with the code executed in this blogpost here.
  • You can also download the R script containing only the code here.
  • You need to install the following packages to execute the full tutorial:
    • {ggplot2}, part of the {tidyverse} package collection
    • {tidyverse} package collection, namely
      • {dplyr} for data wrangling
      • {tibble} for modern data frames
      • {tidyr} for data cleaning
      • {forcats} for handling factors
    • {colorspace} for manipulating colors
    • {corrr} for calculating correlation matrices
    • {cowplot} for composing ggplots
    • {ggdark} for themes and inverting colors
    • {ggforce} for sina plots and other cool stuff
    • {ggrepel} for nice text labeling
    • {ggridges} for ridge plots
    • {ggsci} for nice color palettes
    • {ggtext} for advanced text rendering
    • {ggthemes} for additional themes
    • {grid} for creating graphical objects
    • {gridExtra} for additional functions for "grid" graphics
    • {patchwork} for multi-panel plots
    • {rcartocolor} for great color palettes
    • {scico} for perceptional uniform palettes
    • {showtext} for custom fonts
    • {shiny} for interactive apps
    • a number of packages for interactive visualizations
      • {charter}
      • {echarts4r}
      • {ggiraph}
      • {highcharter}
      • {plotly}
## install CRAN packages
install.packages(c("tidyverse", "colorspace", "corrr",  "cowplot", 
                   "ggdark", "ggforce", "ggrepel", "ggridges", "ggsci", 
                   "ggtext", "ggthemes", "grid", "gridExtra", "patchwork", 
                   "rcartocolor", "scico", "showtext", "shiny", 
                   "plotly", "highcharter", "echarts4r"))
## install from GitHub since not on CRAN
devtools::install_github("JohnCoene/charter")
@andrewcstewart andrewcstewart added the plot types Types of plots to try label Dec 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
plot types Types of plots to try
Projects
None yet
Development

No branches or pull requests

1 participant