PageRenderTime 11ms CodeModel.GetById 8ms app.highlight 0ms RepoModel.GetById 1ms app.codeStats 0ms

/examples/tableplot.R

https://code.google.com/
R | 14 lines | 6 code | 4 blank | 4 comment | 0 complexity | b43f83c3deca1ad9a22383d77f2d67b8 MD5 | raw file
 1# load diamonds dataset from ggplot2
 2require(ggplot2)
 3data(diamonds)
 4
 5# default tableplot
 6tableplot(diamonds)
 7
 8# customized tableplot
 9tableplot(diamonds, colNames=c("carat", "cut", "color", "clarity", "price"), sortCol="price", from=0, to=5)
10
11# apply filter
12tableplot(diamonds, filter="price < 5000 & cut=='Premium'")
13tableplot(diamonds, filter="cut")
14