![]() ![]() Points(existingTurbines$long_DD, existingTurbines$lat_DD, pch=19, col = "red", cex =. 6)ĮxistingTurbines <- read.csv(temporaryFile) Points(dataCenters$Longitude, dataCenters$Latitude, pch=19, col = "blue", cex =. Title('Data Centers (the Uptime Institute)') Scatterplot3d(iris$Petal.Width, iris$Sepal.Length, iris$Sepal.Width)ĭistMatrix <- as.matrix(dist(iris)) Plot(jitter(iris$Sepal.Length), jitter(iris$Sepal.Width)) With(iris, plot(Sepal.Length, Sepal.Width, col=Species, pch=as.numeric(Species))) # "Species" summary(iris) # Sepal.Length Sepal.Width Petal.Length Petal.Width # 6 5.4 3.9 1.7 0.4 setosa names(iris) # "Sepal.Length" "Sepal.Width" "Petal.Length" "Petal.Width" Markdown syntax seems to support at least a subset of LaTex features for example, \ head(iris) # Sepal.Length Sepal.Width Petal.Length Petal.Width Species ![]() If so desired, the echo = FALSE parameter can be added to the code chunk to prevent printing of the R code that generates the plot. With(iris, plot3d(Sepal.Length, Sepal.Width, Petal.Length, We can also embed plots, traditional plots as well as advanced WebGL-enabled plots, provided that the version of the Web browser in use supports WebGL. We can enter R code chunk like this: summary(cars) # speed dist When we click the Knit HTML button, a document will be generated that includes both content as well as the output of any embedded R code chunks within the document. However, we embed them herein to see how they behave as R Markdown code chunks. The code snippets would normally be run in R Studio. The interested reader may refer to for more details on using R Markdown.Īs a starter, a few examples involving the datasets Cars and Iris are taken from “R and Data Mining: Examples and Case Studies” by Y. R Markdown is similar to LaTex in that its simple formatting syntax can help create dynanmic HTML, PDF, and MS Word documents. The author would like to thank Jordan Duxbury for his programming support in regards to file access and data visualization of wind turbine and data center datasets. This tutorial has been motivated by and adapted from a number of online sources. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |