Thanks Ista for your mail. Here I wanted to have control on color-pallet. It is because, here my entire plot window is subdivided in 3 sub-plots horizontally, on basis if a factor-variable which contains three factors, using facet_grid(). Each sub-plot contains scatter-plot. I want to color the points of each scatter-plot based on the corresponding factor (contained in factor-variable). Therefore as you might agree in this case, there is no need for additional color-pallet as the factor-description is handled by facet_grid() function itself.
Any better idea how I can hide color-pallet? Thanks, Ista Zahn wrote: > > There was a recent discussion of the ggplot2 mailing list about a > similar issue. The first question is how will people know what the > colors mean if you remove the legend? > > -Ish > > On Tue, Dec 1, 2009 at 11:41 PM, Megh <megh700...@yahoo.com> wrote: >> >> Let consider following plot : >> >> p <- ggplot(mtcars, aes(mpg, wt)) >> p + geom_point(colour="grey50", size = 4) + geom_point(aes(colour = >> cyl)) >> >> Now I want R to hide the color-pallet on "cyl", placed in the right edge >> completely. Can anyone please guide me how to do that? >> >> Thanks, >> -- >> View this message in context: >> http://n4.nabble.com/A-ggplot-question-tp932775p932775.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. >> > > > > -- > Ista Zahn > Graduate student > University of Rochester > Department of Clinical and Social Psychology > http://yourpsyche.org > > ______________________________________________ > 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. > > -- View this message in context: http://n4.nabble.com/A-ggplot-question-tp932775p932837.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.