R Markdown

summary(cars)
##      speed           dist       
##  Min.   : 4.0   Min.   :  2.00  
##  1st Qu.:12.0   1st Qu.: 26.00  
##  Median :15.0   Median : 36.00  
##  Mean   :15.4   Mean   : 42.98  
##  3rd Qu.:19.0   3rd Qu.: 56.00  
##  Max.   :25.0   Max.   :120.00

Including Plots

You can also embed plots, for example:

if(!require(maps))install.packages('maps');library(maps)
## Loading required package: maps
if(!require(mapdata))install.packages('mapdata');library(mapdata)
## Loading required package: mapdata
if(!require(ggmap))install.packages('ggmap');library(ggmap)
## Loading required package: ggmap
## Loading required package: ggplot2
if(!require("XML")) install.packages("XML");library(XML)
## Loading required package: XML
if(!require("stringr")) install.packages("stringr");library(stringr)
## Loading required package: stringr
if(!require("RCurl")) install.packages("RCurl");library(RCurl)
## Loading required package: RCurl
## Loading required package: bitops
if(!require("tm")) install.packages("tm");library(tm)
## Loading required package: tm
## Loading required package: NLP
## 
## Attaching package: 'NLP'
## The following object is masked from 'package:ggplot2':
## 
##     annotate
if(!require("SnowballC")) install.packages("SnowballC");library(SnowballC)
## Loading required package: SnowballC
if(!require("wordcloud")) install.packages("wordcloud");library(wordcloud)
## Loading required package: wordcloud
## Loading required package: RColorBrewer
if(!require("RColorBrewer")) install.packages("RColorBrewer");library(RColorBrewer)
map('world','South Korea', fill=TRUE, col="grey")
map('world','South Korea', fill=TRUE, col="grey", bg="lightblue")

map.axes()
map.scale(129,34)

#points(stations$경도, stations$위도, pch=16)

map('world',c('North Korea','South Korea'))

############################
par(mar=c(0,0,0,0))
map(database = "worldHires", region=c('South Korea', 'North Korea'))

par(mar=c(0,0,0,0))
map(database = "worldHires", region=c('South Korea', 'North Korea', 'Japan', 'China'))
map(database = "worldHires", region='South Korea', col='blue', fill=TRUE, add=TRUE)
map(database = "worldHires", region='North Korea', col='red', fill=TRUE, add=TRUE)
map(database = "worldHires", region='Japan', col='black', fill=TRUE, add=TRUE)
map(database = "worldHires", region='China', col='gold', fill=TRUE, add=TRUE)

map.scale(cex=0.7)

map(database = "worldHires", region=c('South Korea', 'North Korea', 'Japan', 'China'))

Note that the echo = FALSE parameter was added to the code chunk to prevent printing of the R code that generated the plot.