mdf {ggplot} | R Documentation |
mdf(formula=~., df, direction, offset, xrange=c(0,1), yrange=c(0,1))
formula |
|
df |
|
direction |
|
offset |
|
xrange |
|
yrange |
Hadley Wickham <h.wickham@gmail.com>
library(grid) tt <- as.data.frame(Titanic) mdf(~ Class, tt) # counts mdf(Freq ~ Class, tt) # with a weighting variable mdf(Freq ~ Class + Sex + Age, tt) mdf(Freq ~ Class + Sex + Age, tt, direction=c("v","h","v"))