R语言
文章平均质量分 80
普通网友
这个作者很懒,什么都没留下…
展开
-
ggplot: theme capability
Non data elements of the plot is controlled by theme system.theme give you control over things like fonts in all parts of the plot: title, axis labels, axis tick labels, strips ,legends labels原创 2015-04-18 12:15:03 · 416 阅读 · 0 评论 -
ggplot: scales, axes, and legends
From ggplot2 Elegent graphics for data analysis(use R)1. scales control the mapping from data to aesthetics(size, shape, color, position) it also provide axes and legends(collectively known原创 2015-04-16 11:10:07 · 843 阅读 · 0 评论 -
GGplot in R: Positioning--faceting and coordinate system
1. faceting: automatically laying out multiple plots on a page. Split data into subsets, then plots each subset into a different panel on the page. 2. Coordinate system: Control how the two indepe原创 2015-04-18 11:12:50 · 581 阅读 · 0 评论 -
ggplot: ddply(plyr)
1. ddply(.data, .variable,.fun,...).data: is the data to break up.variable: the grouping variable used to break up the dataset..fun: summary function you want to use to each group. return a原创 2015-04-18 14:56:38 · 1087 阅读 · 0 评论 -
Grammar under the ggplot
1. Mapping aesthetics to datae.g. scatterplot: each point has a size, a color, and a shape. these attributes are called aesthetics, each aesthetic can be mapped to a varibale or set to a constant原创 2015-04-14 10:01:20 · 331 阅读 · 0 评论 -
ggplot in R
1. create a plot object: p= ggplot(diamonds,aes(carat,price,color=cut))dataset / mappings :aes()2. add a layer:a minimal layer is to specify a geom.e.g. p=p+layer(geom="point)p+geo原创 2015-04-14 13:28:33 · 719 阅读 · 0 评论 -
Terminology in ggplot
1. data: The data you want to visualise2. aesthetic mappings: describing how activities in the data are mapped to aesthetic attributes3. geometric(geom for short): represent what you actually see原创 2015-04-14 09:01:01 · 502 阅读 · 0 评论 -
dplyr: R Language
http://127.0.0.1:22867/library/dplyr/doc/introduction.htmlIntroduction to dplyr1. functionsfilter() and slice()arrange()select() and rename()distinct()mutate() and transmute()转载 2015-04-24 15:48:25 · 1095 阅读 · 0 评论