Quotes help make search much faster. Example: "Practice Makes Perfect"

Wednesday, September 4, 2019

Codecademy Intro to Visualization with R Geom Aesthetics 7/11


#Sample Solution
---
title: "Intro To GGPlot2"
output: html_notebook
---

```{r message=FALSE, warning=FALSE}
# load libraries and data
library(readr)
library(dplyr)
library(ggplot2)
movies <- read_csv("imdb.csv")
```

```{r}
# Add manual alpha aesthetic mapping
viz <- ggplot(data=movies, aes(x=imdbRating, y=nrOfWins)) + geom_point(aes(color=nrOfGenre))

# Prints the plot
viz
```

```{r message=FALSE}
```

No comments:

Post a Comment


This is an example of scrolling text using Javascript.

Popular Posts