useR's, I want to create a "movie" of a sin function (from 0 to pi/2) using levelplot() in the lattice package. I basically want to create 20 or so plots of the sin function starting with an amplitude of 0 and ending at amplitude 1. By using a loop and plotting these in succession, it will have the appearance of a movie or animation. I believe I know how to do this part, but I am having trouble working with the colors. I want to use a range of colors starting with light blue (denoting zero) and progressively getting darker as the amplitude gets closer to 1 (red color). Does anyone know a way to do this?
Thanks in advance -- View this message in context: http://www.nabble.com/help-with-levelplot%28%29-tp15033748p15033748.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.