Hi, I use?R to draw my graphs. I have 100 points on a simple xy-plot. The points are distinguished by a third variable which is categorical with 10 levels. I have been plotting x against y and using gray scales to distinguish the level of the categorical variable for each point. It looks ok to me but?a journal reviewer says this is not any use. I cannot afford to pay for colour prints. Any ideas on what is the best way to distinguish 10 groups on an xy scatter plot? If all else fails?I can just remove the graph and give them a table of regression coefficients. Thanks. Yours Sincerely Andrew McCulloch
On 11-08-01 5:44 AM, Andrew McCulloch wrote:> Hi, > > I use R to draw my graphs. I have 100 points on a simple xy-plot. The points are > distinguished by a third variable which is categorical with 10 levels. I have > been plotting x against y and using gray scales to distinguish the level of the > categorical variable for each point. It looks ok to me but a journal reviewer > says this is not any use. I cannot afford to pay for colour prints. Any ideas on > what is the best way to distinguish 10 groups on an xy scatter plot?Plot digits or letters or other symbols. Duncan Murdoch> > > > If all else fails I can just remove the graph and give them a table of > regression coefficients. > > > Thanks. > > Yours Sincerely > Andrew McCulloch > > ______________________________________________ > R-help at 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.
plot(1:10, pch=letters[1:10]) On Mon, Aug 1, 2011 at 4:44 AM, Andrew McCulloch <amccul39@yahoo.co.uk>wrote:> Hi, > > I use R to draw my graphs. I have 100 points on a simple xy-plot. The > points are > distinguished by a third variable which is categorical with 10 levels. I > have > been plotting x against y and using gray scales to distinguish the level of > the > categorical variable for each point. It looks ok to me but a journal > reviewer > says this is not any use. I cannot afford to pay for colour prints. Any > ideas on > what is the best way to distinguish 10 groups on an xy scatter plot? > > > > If all else fails I can just remove the graph and give them a table of > regression coefficients. > > > Thanks. > > Yours Sincerely > Andrew McCulloch > > ______________________________________________ > 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. >[[alternative HTML version deleted]]
Why can't you simply draw a 3 - D plot. The third variable being categorical can expressed as a bar. Regards, Indrajit ________________________________ From: Andrew McCulloch <amccul39@yahoo.co.uk> To: r-help@r-project.org Sent: Monday, August 1, 2011 3:14 PM Subject: [R] Plotting question Hi, I use R to draw my graphs. I have 100 points on a simple xy-plot. The points are distinguished by a third variable which is categorical with 10 levels. I have been plotting x against y and using gray scales to distinguish the level of the categorical variable for each point. It looks ok to me but a journal reviewer says this is not any use. I cannot afford to pay for colour prints. Any ideas on what is the best way to distinguish 10 groups on an xy scatter plot? If all else fails I can just remove the graph and give them a table of regression coefficients. Thanks. Yours Sincerely Andrew McCulloch ______________________________________________ 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. [[alternative HTML version deleted]]
Andrew McCulloch wrote:> I use R to draw my graphs. I have 100 points on a simple xy-plot. The > points are distinguished by a third variable which is categorical with 10 > levels. I have been plotting x against y and using gray scales to > distinguish the level of the categorical variable for each point. It looks > ok to me but a journal reviewer says this is not any use. I cannot afford > to pay for colour prints. Any ideas on what is the best way to distinguish > 10 groups on an xy scatter plot?How about having *10* scatterplots + an identical grid in each plot? Try example(coplot) for an idea about it could look (ignore the marginal plots). Of course, do use the lattice or the ggplot2 package, not the coplot function. Too bad you have 10 groups and not 9 (or 12), BTW ... :-/ -- Karl Ove Hufthammer