Publications by avocadomuncher22

How to make a line graph using ggplot2

20.03.2021

You probably learned to make a line graph back in high school (or even middle school!). But the ggplot R package can make these graphs come to life. Let’s take a look at how to do this. First, we need interesting data. For this post, we will use this earth surface temperature data. This dataset is pre-processed so we can explore climate trends ...

1813 sym R (383 sym/1 pcs) 2 img

Making beautiful maps with ggplot

22.03.2021

Many people reach for ggplot for graphing but it is also a great tool for mapping. You have control to customize colors, scales, and themes from ggplot to make beautiful maps. Here we explore an example using the Berkeley climate data to map global temperatures in 1913 compared to a century later in 2013. This dataset contains average temperature...

5066 sym R (2151 sym/3 pcs) 6 img

Making bar plots using ggplot in R

29.03.2021

Though ggplot() makes beautiful graphics, I often find myself going back to old projects to find a template for how to set up the code to make ggplot() graphs. Here I will show you how to make a barplot in ggplot. Then we will look at some variants of the barplot that are useful when visualizing different types of data. Data Preparation As with a...

5794 sym R (3155 sym/11 pcs) 12 img

Finding tree species that co-occur in U.S. forests using R: a case study

09.04.2021

When learning to code, I sometimes find it helpful to look at code other people have written for a similar task. How do they format their code? What tips and tricks can I take away? What was the logic they used to structure the code? I hope that this case study might help you understand a problem you’ve been working through or highlight some ne...

5596 sym R (3003 sym/7 pcs) 4 img

Ggplot with moving averages

14.04.2021

There is so much to learn in the world of R. One thing that I want to learn more about is working with time series data. I’ve read a lot about the tidyquant package and its uses with time series data so that was top of my list to start learning time series. This post walks through some of my learning tidyquant from this helpful vignette. Especi...

3132 sym R (609 sym/2 pcs) 2 img

Plotting movement data in R using ggmap and ggplot

25.04.2021

With ever increasing sources of movement data from GPS in phones, animal trackers, and other devices I want to learn about visualizing movement. This post explores a dataset of caribou tracker collar GPS data which can be found on figshare. Image by Free-Photos from Pixabay The first step in any project is to prepare the data. Here the data prep...

4089 sym R (1357 sym/5 pcs) 8 img