salinity <- ggplot(temp, aes(x = Salinity))
salinity + geom_histogram()`stat_bin()` using `bins = 30`. Pick better value `binwidth`.
Warning: Removed 798 rows containing non-finite outside the scale range
(`stat_bin()`).
#Module 07
ggplot() to produce a histogram of salinity valuessalinity <- ggplot(temp, aes(x = Salinity))
salinity + geom_histogram()`stat_bin()` using `bins = 30`. Pick better value `binwidth`.
Warning: Removed 798 rows containing non-finite outside the scale range
(`stat_bin()`).
salinity + geom_histogram(color='lightblue', fill='white') + facet_wrap(~ Year)`stat_bin()` using `bins = 30`. Pick better value `binwidth`.
Warning: Removed 798 rows containing non-finite outside the scale range
(`stat_bin()`).
salinity + geom_histogram(color='lightblue', fill='white') + facet_wrap(~ Month)`stat_bin()` using `bins = 30`. Pick better value `binwidth`.
Warning: Removed 798 rows containing non-finite outside the scale range
(`stat_bin()`).
temp_plot <- ggplot(temp, aes(x = Temperature, y = Station))
temp_plot <- temp_plot + geom_boxplot()
temp_plotWarning: Removed 927 rows containing non-finite outside the scale range
(`stat_boxplot()`).
ggsave("TempByStation.png", temp_plot)Saving 7 x 5 in image
Warning: Removed 927 rows containing non-finite outside the scale range
(`stat_boxplot()`).
temp_plot <- ggplot(temp, aes(x = Temperature, y = reorder(Station, Temperature, median, na.rm = TRUE)))
temp_plot <- temp_plot + geom_boxplot()
temp_plotWarning: Removed 927 rows containing non-finite outside the scale range
(`stat_boxplot()`).
temp$decdate <- temp$Year + temp$dDay3 / 365Salinity <- ggplot(temp, aes(x = decdate, y = Salinity))
Temperature <- ggplot(temp, aes(x = decdate, y = Temperature))
Salinity + geom_point()Warning: Removed 798 rows containing missing values or values outside the scale range
(`geom_point()`).
Temperature + geom_point()Warning: Removed 927 rows containing missing values or values outside the scale range
(`geom_point()`).
Salinity + geom_point() + facet_wrap(~ Area)Warning: Removed 798 rows containing missing values or values outside the scale range
(`geom_point()`).
Salinity + geom_line() + facet_wrap(~ Area)os <- subset(temp, Area == "OS")
os_plot <- ggplot(os, aes(x = decdate, y = Salinity))
os_plot + geom_line() + facet_wrap(~ Area)