setup chunk は、他のchunkだけを実行しても、最初に必ず実行される libraryなどは、ここに集約しておくのが良い include = FALSE コードは隠れるが、実行される opts_chunk$set() の中のオプションは、全チャンクで有効 MicrosoftのVisual Studio Code でLive Previewできる r-wakalang
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:
#summary(cars)
You can also embed plots, for example:
Note that the echo = FALSE
parameter was added to the code chunk to prevent printing of the R code that generated the plot.
objT <- ggplot(tyo, mapping = aes(V1, y = V6) )
objT <- objT + geom_line()
objT
objH <- ggplot(htk, mapping = aes(V1, y = V3) )
objH <- objH + geom_line()
objH
objN <- ggplot(nah, mapping = aes(V1, y = V9) )
objN <- objN + geom_line()
objN