Thread for students posting practice reprexes. Please do not answer them!

library(tidyverse)
ggplot(data = mtcars, 
       mapping = aes(x = cyl, y = mpga)) +
  geom_col()
#> Error in `geom_col()`:
#> ! Problem while computing aesthetics.
#> ℹ Error occurred in the 1st layer.
#> Caused by error:
#> ! object 'mpga' not found

Created on 2024-06-12 with reprex v2.1.0

ggplot(data = mtcars, 
       mapping = aes(x = cyl, y = mpga)) +
  geom_col()
#> Error in ggplot(data = mtcars, mapping = aes(x = cyl, y = mpga)): could not find function "ggplot"
library(tidyverse)
ggplot(data = mtcars, 
       mapping = aes(x = cyl, y = mpga)) +
  geom_col()
#> Error in `geom_col()`:
#> ! Problem while computing aesthetics.
#> ℹ Error occurred in the 1st layer.
#> Caused by error:
#> ! object 'mpga' not found
library()
ggplot(data = mtcars, 
       mapping = aes(x = cyl, y = mpga)) +
  geom_col()
#> Error in ggplot(data = mtcars, mapping = aes(x = cyl, y = mpga)): could not find function "ggplot"

install.packages("tutorial.helpers")
#> Installing package into 'C:/Users/15049/AppData/Local/R/win-library/4.4'
#> (as 'lib' is unspecified)
#> package 'tutorial.helpers' successfully unpacked and MD5 sums checked
#>
#> The downloaded binary packages are in
#> C:\Users\15049\AppData\Local\Temp\Rtmp0g1k5s\downloaded_packages

library(tidyverse)
library(ggplot2)

Create the plot

ggplot(data = mtcars, aes(x = factor(cyl), y = mpg)) +
geom_col() +
labs(x = "Number of Cylinders", y = "Miles per Gallon") +
ggtitle("Bar Plot of Miles per Gallon by Cylinder Count")

Created on 2024-06-17 with reprex v2.1.0

``` r
library(tidyverse)
ggplot(data = mtcars, 
       mapping = aes(x = cyl, y = mpga)) +
  geom_col()
#> Error in `geom_col()`:
#> ! Problem while computing aesthetics.
#> ℹ Error occurred in the 1st layer.
#> Caused by error:
#> ! object 'mpga' not found
```

<sup>Created on 2024-06-18 with [reprex v2.1.0](https://reprex.tidyverse.org)</sup>
#> Error: attempt to use zero-length variable name

Created on 2024-06-18 with reprex v2.1.0

library(tidyverse)
ggplot(data = mtcars,
mapping = aes(x = cyl, y = mpga)) +
geom_col()
#> Error in geom_col():
#> ! Problem while computing aesthetics.
#> :information_source: Error occurred in the 1st layer.
#> Caused by error:
#> ! object 'mpga' not found
Created on 2024-06-26 with reprex v2.1.0