Re: [R] barplot question

2012-07-31 Thread Rui Barradas
Hello, Ok, final retouches. 1. Divide the par() call: oldpar <- par(mar=c(9, 4.1, 4.1, 2.1)) oldfont <- par(font=3) Then, just before legend() par(oldfont) # back to normal font 2. Modify the text() call to text(as.vector(bp), y = -6.5, cex=0.7, pos = 2, offset = -0.25, ...etc

Re: [R] barplot question

2012-07-30 Thread Rui Barradas
Hello, Try the following. plants_herbs_input_top10 <- structure(list(total = c(28L, 17L, 11L, 6L, 6L, 5L, 4L, 3L, 3L, 2L), young = c(29L, 22L, 15L, 8L, 5L, 3L, 2L, 2L, 2L, 2L), old = c(36L, 11L, 11L, 8L, 6L, 5L, 4L, 3L, 2L, 2L)), .Names = c("total", "young", "old"), class = "data.frame", row.

Re: [R] barplot question

2011-07-20 Thread Jim Lemon
On 07/20/2011 01:24 AM, Sally_roman wrote: In my first post is example data. Hi Sally, I was going to suggest: fish<-read.table("fish.dat",header=TRUE) controlfish<- rbind(fish$pounds[fish$net=="Control" & fish$type == "kept"], fish$pounds[fish$net=="Control" & fish$type == "discard"]) expf

Re: [R] barplot question

2011-07-19 Thread Sarah Goslee
People who participate in this list via email are unlikely to have your example data, or even to have any idea what you are currently referring to. Please leave enough of the previous messages in your reply to the list to provide context, and include all necessary information. Don't assume that ev

Re: [R] barplot question

2011-07-19 Thread Sally_roman
In my first post is example data. -- View this message in context: http://r.789695.n4.nabble.com/barplot-question-tp3670861p3678402.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https://stat.ethz.ch/

Re: [R] barplot question

2011-07-19 Thread Robert Baer
St. Kirksville, MO 63501 660-626-2322 FAX 660-626-2965 -Original Message- From: Sally_roman Sent: Monday, July 18, 2011 12:15 PM To: r-help@r-project.org Subject: Re: [R] barplot question I would like to make stacked barplots, but with two stacked columns per x value. For cod - I have

Re: [R] barplot question

2011-07-18 Thread Sally_roman
I would like to make stacked barplots, but with two stacked columns per x value. For cod - I have kept and discard values for 2 nets. I would like to have one stacked column for the control net with the kept and discard value and then another column with the kept and discard values for the experi

Re: [R] barplot question

2011-07-18 Thread Sarah Goslee
Hi Sally, I'm not sure what your question actually is. How to make a stacked bar plot, perhaps? If so, do any of the examples at these two sites help? http://www.harding.edu/fmccown/R/#barcharts http://addictedtor.free.fr/graphiques/search.php?engine=RGG&q=barplot If not, can you explain what yo

Re: [R] barplot question

2011-07-18 Thread Sally_roman
I have done ?barplot. I have not problems making barplots in R except for this where there are actually two stacked columns for each fish. I have also searched the internet to look for examples like what I would like to plot, but have not found any which is why I thought putting a post would b

Re: [R] barplot question

2011-07-15 Thread Carl Witthoft
Start out with ?barplot Then please tell us what your "issues" are. The barplot function is pretty flexible. If I guess that you are having difficulty simultaneously plotting one set of stacked bars and another set of non-stacked bars next to them, I would recommend two approaches. One