Triad sou.

2011-06-28から1日間の記事一覧

passing parameters to ggplot

おもしろそうなコードを 教えてもらった。 require(ggplot2) DS <- data.frame(speed=rnorm(10), dist=rnorm(10)) f <- function(DS, x, y) { aes <- eval(substitute(aes(x, y), list(x = substitute(x), y = substitute(y)))) p <- ggplot(DS, aes) + geom…