Skip to content

Fully reproducible annotated Rmarkdown code templates to create graphs using the ggplot2 package. Designed for those with minimal experience in R who want to make publication-ready graphs.

Notifications You must be signed in to change notification settings

annaliselaplume/datavisualization

Repository files navigation

Data Visualization

Summary

Templates for creating publication-ready plots in R.

Description

Fully reproducible Rmarkdown code templates to create graphs using the using the ggplot2 package in R. Templates are completely annotated and easy to use, even for beginners to R.

Motivation

Many individuals are attracted to the elegance and customization of graphs in R, but may not have the time to deal with the steep learning curve of R. I provide simple and labelled templates, designed to serve as cheat sheets for begginers to create beautiful visualizations.

Available files

  1. "data visualization R code.rmd" Code for how to draw graphs
  2. "sample_data.csv" Sample between-groups data for graphs
  3. "rep_measures_data.csv" Sample within-group data for graphs
  4. "data visualization.html" Output of R code, with examples of the possible visualizations

Sample images

boxplot-dotplot

violin-dotplot

boxplot many groups

Line graph by group

scatterplot many groups

Smooth line graph

Citation

Thank you for using this page! Feel free to use and share the code templates. To cite, please use LaPlume, A. A. (2021). Data Visualization in R. https://doi.org/10.5281/zenodo.4599639

Writing code is similar to academic writing. When you use or adapt code created by another person, you must cite your source. (https://integrity.mit.edu/handbook/writing-code)

Graph requests

I am taking requests to add templates for new visualizations. Please contact me on adsouza@research.baycrest.org

About

Fully reproducible annotated Rmarkdown code templates to create graphs using the ggplot2 package. Designed for those with minimal experience in R who want to make publication-ready graphs.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages