[1] "TWII"
在網路上看到...
立馬找出男女比例懸殊的幾個系
graphics
ggplot2
googleVis
rCharts
rCharts
install.package("devtools")
library(devtools)
install_github("rCharts", "ramnathv")
shiny
install.packages("shiny")
library(shiny)
runExample()
# Valid examples are '01_hello',
#'02_text','03_reactivity',
#'04_mpg','05_sliders','06_tabsets',
#'07_widgets','08_html','09_upload',
#'10_download','11_timer'
runExample("01_hello")
回到之前的例子
|
graphics
|
ggplot2
|
|
googleVis
|
rCharts |
graphics
barplot(target1, beside=TRUE,legend=colnames(target1))
ggplot2
ggplot(aes(x=disp, y=number, fill=sex), data=target2)+
geom_bar(stat="identity", position="dodge")
googleVis
bar <- gvisColumnChart(target, xvar="disp", yvar=c("male","female"))
plot(bar)
rCharts
hPlot(number ~ disp, group = "sex", data = target2, type = "column")
| googleVis | ggplot2, rCharts |
| class: data.frame | class: data.frame |
|
|
|
| graphics | |
| class: matrix | |
|
|
|
偶爾也要關心一下台灣...
最近有個新聞
所得差距
二十等分位 vs. 五等分位
低收入戶比例
低收入戶分佈 (ggplot2::geom_polygon)
過年去台東玩吧~~
救救老殘窮...
出去玩之前,要衡量一下自己的錢包...
歷年薪資分佈(gVisMotionChart)
Thank you!!!
Use a spacebar or arrow keys to navigate