/examples/tableplot.R
https://code.google.com/ · R · 14 lines · 6 code · 4 blank · 4 comment · 0 complexity · b43f83c3deca1ad9a22383d77f2d67b8 MD5 · raw file
- # load diamonds dataset from ggplot2
- require(ggplot2)
- data(diamonds)
-
- # default tableplot
- tableplot(diamonds)
-
- # customized tableplot
- tableplot(diamonds, colNames=c("carat", "cut", "color", "clarity", "price"), sortCol="price", from=0, to=5)
-
- # apply filter
- tableplot(diamonds, filter="price < 5000 & cut=='Premium'")
- tableplot(diamonds, filter="cut")