--- title: "Data Types" output: html_notebook --- If you guessed that the last command will return an error because 77.2 plus "Denmark" is nonsense, you’re right - and you already have some intuition for an important concept in programming called data classes. We can ask what class of data something is: ```{r} # class(nordic$lifeExp) ``` Define two numeric variables, xLongitude and yLatitude (These are coordinates for Albuquerque, New Mexico) ```{r echo=TRUE} xLongitude <- 106.67 yLatitude <- 35.07 class(xLongitude) ``` Use the 'plot' function from the R base package to see the coordinates displayed on a simple plot ```{r} plot(xLongitude,yLatitude) ``` Next, import the 'maps' package, and use the library command to initialize it ```{r} install.packages("maps") library(maps) ``` Instead of plotting on a simple background, plot on a world map ```{r} map("usa") points(x,y, col="gray") ``` The 'maps' package has a rough outline of the United States included, and we now should have a plot of a US map with Albuquerque indicated by a gray circle