All Projects → dlab-berkeley → R-Data-Visualization

dlab-berkeley / R-Data-Visualization

Licence: other
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.

Projects that are alternatives of or similar to R-Data-Visualization

Data Science Toolkit
Collection of stats, modeling, and data science tools in Python and R.
Stars: ✭ 169 (+604.17%)
Mutual labels:  ggplot2
Ggedit
Interactively edit ggplot layer aesthetics and theme definitions
Stars: ✭ 223 (+829.17%)
Mutual labels:  ggplot2
schoenberg
ggplot-based graphics and useful functions for GAMs fitted using the mgcv package
Stars: ✭ 25 (+4.17%)
Mutual labels:  ggplot2
Ggnet
Network visualization with ggplot2
Stars: ✭ 182 (+658.33%)
Mutual labels:  ggplot2
Gggenes
➡️️➡️️⬅️️➡️️ Draw gene arrow maps in ggplot2
Stars: ✭ 214 (+791.67%)
Mutual labels:  ggplot2
R4ds Exercise Solutions
Exercise solutions to "R for Data Science"
Stars: ✭ 226 (+841.67%)
Mutual labels:  ggplot2
Plotly
An interactive graphing library for R
Stars: ✭ 2,096 (+8633.33%)
Mutual labels:  ggplot2
CSSS508
CSSS508: Introduction to R for Social Scientists
Stars: ✭ 28 (+16.67%)
Mutual labels:  ggplot2
Vaporwave
📼👾🕹Vaporwave themes and color palettes for ggplot2💾👨‍🎤📺
Stars: ✭ 215 (+795.83%)
Mutual labels:  ggplot2
ggplotify
ggplot everything
Stars: ✭ 89 (+270.83%)
Mutual labels:  ggplot2
Treemapify
🌳 Draw treemaps in ggplot2
Stars: ✭ 186 (+675%)
Mutual labels:  ggplot2
Ggcharts
Get You to Your Desired Plot Faster
Stars: ✭ 205 (+754.17%)
Mutual labels:  ggplot2
Ggfittext
🔠 ggplot2 geoms to fit text into boxes
Stars: ✭ 233 (+870.83%)
Mutual labels:  ggplot2
Gghalves
✂️ Easy half-half geoms in ggplot2
Stars: ✭ 174 (+625%)
Mutual labels:  ggplot2
gglaplot
Makes graphics in the GLA style using ggplot2
Stars: ✭ 15 (-37.5%)
Mutual labels:  ggplot2
Slopegraph
Edward Tufte-Inspired Slopegraphs
Stars: ✭ 166 (+591.67%)
Mutual labels:  ggplot2
Ghibli
Studio Ghibli colour palettes
Stars: ✭ 227 (+845.83%)
Mutual labels:  ggplot2
aRtsy
An R package for making generative art using 'ggplot2'.
Stars: ✭ 142 (+491.67%)
Mutual labels:  ggplot2
soilpalettes
R color palettes inspired by soil profiles
Stars: ✭ 16 (-33.33%)
Mutual labels:  ggplot2
ggplot2 themes in github
A generated list of repos containing themes/styles for ggplot2
Stars: ✭ 43 (+79.17%)
Mutual labels:  ggplot2

D-Lab's R Data Visualization Workshop

This repository contains the materials for D-Lab's R Data Visualization workshop. Prior experience with R Fundamentals is assumed.

Workshop Goals

In this workshop, we provide an introduction to data visualization in R. First, we'll cover some basics of visualization theory. Then, we'll explore how to plot data in R using base R functions as well as ggplot2. We aim to cover the following types of plots:

  • line plots
  • bar plots
  • scatter plots
  • boxplots
  • heat maps

We will also explore the basic grammar of graphics, including the aesthetics and geometry layers, adding statistics, transforming scales, and coloring or paneling by groups. Throughout the workshop, we'll discuss the plot types best suited for particular types of data.

Basic familiarity with R is assumed. If you are not familiar with material in R Fundamentals, we recommend attending that workshop first.

Installation Instructions

We will use RStudio to go through the workshop materials, which requires installation of both the R language and the RStudio software. Complete the following steps:

  1. Download R: Follow the links according to the operating system that you are running. Download the package, and install R onto your compute. You should install the most recent version (at least version 4.0).
  2. Download RStudio: Install RStudio Desktop. This should be free. Do this after you have already installed R. The D-Lab strongly recommends an RStudio edition of 2022.02.0+443 "Prairie Trillium" or higher.
  3. Download these workshop materials:
  • Click the green "Code" button in the top right of the repository information.
  • Click "Download Zip".
  • Extract this file to a folder on your computer where you can easily access it (we recommend Desktop).
  1. Optional: if you're familiar with git, you can instead clone this repository by opening a terminal and entering git clone [email protected]:dlab-berkeley/R-Data-Visualization.git.

Run the code

Now that you have all the required software and materials, you need to run the code:

  1. Launch the RStudio software.

  2. Use the file navigator to find the R-Data-Visualization folder that you downloaded from Github.

  3. Double click on the R-Data-Visualization.Rproj file, and click "yes" when RStudio asks you to confirm whether you want to open up the project.

  4. Open up the R-Data-Visualization.Rmd file, located in the lessons folder.

  5. If you do not have the cowplot, dplyr, ggplot2, and here packages installed, be sure to install them using the install.packages() function in the first code block of the R-Data-Visualization.Rmd file.

  6. Run a chunk of code by clicking the green "play" button in the upper right hand corner of each code chunk. Alternatively, place your cursor on a given line and press "Command + Enter" (Mac) or "Control + Enter" (PC) to run an individual line of code.

  7. The file R-Data-Visualization-Challenges.Rmd contains space for you to work on five challenge problems. The file R-Data-Visualization-Challenges-Solutions.Rmd contains the solutions to these challenges.

Is R not working on your laptop?

If you do not have R installed and the materials loaded on your workshop by the time it starts, we strongly recommend using the UC Berkeley Datahub to run the materials for these lessons. You can access the DataHub by clicking this link.

The DataHub downloads this repository, along with any necessary packages, and allows you to run the materials in an RStudio instance on UC Berkeley's servers. No installation is necessary from your end - you only need an internet browser and a CalNet ID to log in. By using the DataHub, you can save your work and come back to it at any time. When you want to return to your saved work, just go straight to DataHub, sign in, and you click on the R-Data-Visualization folder.

Additional Resources

Check out the following resources to learn more about data visualization and R:

About the UC Berkeley D-Lab

D-Lab works with Berkeley faculty, research staff, and students to advance data-intensive social science and humanities research. Our goal at D-Lab is to provide practical training, staff support, resources, and space to enable you to use R for your own research applications. Our services cater to all skill levels and no programming, statistical, or computer science backgrounds are necessary. We offer these services in the form of workshops, one-to-one consulting, and working groups that cover a variety of research topics, digital tools, and programming languages.

Visit the D-Lab homepage to learn more about us. You can view our calendar for upcoming events, learn about how to utilize our consulting and data services, and check out upcoming workshops.

Other D-Lab R Workshops

Here are other R workshops offered by the D-Lab:

Basic Competency

Intermediate/Advanced Competency

Contributors

Thanks to Software Carpentry, Chris Paciorek, Rochelle Terman, and the R-bootcamp for inspiration.

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