This is an R Markdown document. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R Markdown see http://rmarkdown.rstudio.com.
When you click the Knit button a document will be generated that includes both content as well as the output of any embedded R code chunks within the document. You can embed an R code chunk like this:
Note that the echo = FALSE
parameter was added to the code chunk to prevent printing of the R code that generated the plot.
library (dplyr)
##
## Attaching package: 'dplyr'
## The following objects are masked from 'package:stats':
##
## filter, lag
## The following objects are masked from 'package:base':
##
## intersect, setdiff, setequal, union
library (tidyr)
library (ggplot2)
library (leaflet)
install.packages(“dplyr”) install.packages(“tidyr”) install.packages(“leaflet”) install.packages(“knitr”) install.packages(“rmarkdown”)
##shell("cd C:/Users/ingri/MAST467/Data/output.dat")
shell("C:/Users/ingri/MAST467/Data/NASA.cmd", translate=TRUE)
Omg<-read.csv("C:/Users/ingri/MAST467/Data/output.dat",sep=" ")
###Plotting Temp and Sal ###From Dr.Muenchow's code
ggplot(Omg,mapping=aes(x=sal,y=tem,group=cast,color=dep)) +
geom_point() +
xlim(c(30,36)) +
ylim(c(-20,15)) +
xlab("Salinity, psu") +
ylab("Temperature, C") +
scale_color_viridis_c(guide=guide_colorbar(barheight=15)) +
facet_wrap(~cast)
## Warning: Removed 35 rows containing missing values (geom_point).