I’m going through the R4DS 2e text and right off in chapter 1 I am having issues with ggplot and the penguin data set. I’ve looked into the help file for geom_point() and it shows rm.na is defaulted to FALSE. So I am unsure why I am not seeing a console error telling me about the 2 NA observations in my data?
Is there a setting in Rstudio I am missing?
I’m expecting to see this in the console:
ggplot(
data = penguins,
mapping = aes(x = flipper_length_mm, y = body_mass_g)
) +
geom_point()
#> Warning: Removed 2 rows containing missing values or values outside the scale range
#> (`geom_point()`).
Image of my console after running the code, and then the penguin data set showing at least one of the NA values.