error with scale_fill_gradientn

30 views
Skip to first unread message

Babak

unread,
Mar 14, 2012, 2:53:26 PM3/14/12
to ggp...@googlegroups.com
Hello all,

I receive and error when trying to use rescale option of scale_fill_gradientn as following 
:

last_plot() + scale_fill_gradientn(colours = heat_hcl(9), values = seq(max(clustered_data$ratio), min(clustered_data$ratio)), rescale = FALSE)

Error in scale$oob(scale$rescaler(x, from = limits)) : 
  attempt to apply non-function

I couldn't find any posting on this topic.

Thanks,
Robert

Hadley Wickham

unread,
Apr 11, 2012, 3:39:20 PM4/11/12
to Babak, ggp...@googlegroups.com
Hi Robert,

Please provide a reproducible example:
https://github.com/hadley/devtools/wiki/Reproducibility

Hadley

> --
> You received this message because you are subscribed to the ggplot2 mailing
> list.
> Please provide a reproducible example: http://gist.github.com/270442
>
> To post: email ggp...@googlegroups.com
> To unsubscribe: email ggplot2+u...@googlegroups.com
> More options: http://groups.google.com/group/ggplot2

--
Assistant Professor / Dobelman Family Junior Chair
Department of Statistics / Rice University
http://had.co.nz/

Reply all
Reply to author
Forward
0 new messages