0

I'm trying to replicate this simple example given in the Coursera R Regression Models course:

gg <- ggpairs(sampledga, 
         columns = c("entropy", "length", "onegram", "threegram", "dict", "class"),
         color="class",
         lower=list(continuous="smooth", params=c(alpha=0.5)),
         diag=list(continuous="bar", combo="bar", params=c(alpha=0.5)),
         upper = list(continuous = "density", combo = "box", params=c(alpha=0.5)),
         axisLabels='show')

And I get the following error:

Error in stop_if_params_exist(obj$params) : 'params' is a deprecated argument. Please 'wrap' the function to supply arguments. help("wrap", package = "GGally") In addition: Warning message: In warn_if_args_exist(list(...)) : Extra arguments: "color" are being ignored. If these are meant to be aesthetics, submit them using the 'mapping' variable within ggpairs with ggplot2::aes or ggplot2::aes_string.

Please help me and give me a answer. Thanks!

J_F
  • 9,956
  • 2
  • 31
  • 55
  • Hi, please provide a [reproducible example](http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example) – m-dz Mar 09 '17 at 10:31
  • Or, even better, see [this](http://stackoverflow.com/questions/37889222/change-colors-in-ggpairs-now-that-params-is-deprecated) and [this](http://stackoverflow.com/questions/35085261/how-to-use-loess-method-in-ggallyggpairs-using-wrap-function). – m-dz Mar 09 '17 at 10:32
  • I think I have a trouble with #lower, #diag and #upper – Lương Cao Phong Mar 10 '17 at 07:13
  • Precisely the `params` argument in them, see linked questions, plus the `color` won't work. – m-dz Mar 10 '17 at 08:07
  • It's missing a package or library. True or False? – Lương Cao Phong Mar 11 '17 at 05:12
  • Please read the linked threads, they answer your question. – m-dz Mar 11 '17 at 12:58

0 Answers0