Re: [R] Plotting range of values in barplot()

2010-08-06 Thread Dennis Murphy
Hi: As far as I recall, no one has provided a horizontal barchart as a solution, so here's one using lattice: library(lattice) smw.dat<-factor(rep(c("Somewhat Disagree", "Neutral", "Somewhat Agree", "Strongly Agree"),c(1,2,7,12)), levels=c("Strongly Disagree", "Somewhat Disagree", "Ne

Re: [R] Plotting range of values in barplot()

2010-08-06 Thread Jim Lemon
On 08/06/2010 04:22 AM, yankeetilidie wrote: Hello, I am attempting to create a bar plot that contains a range of possible response values on the x-axis of 1 to 5 and contains barplots for the number of responses even in the event that there are 0 responses. For example, I have a data set that

Re: [R] Plotting range of values in barplot()

2010-08-05 Thread yankeetilidie
Works perfectly. Thank you! -- View this message in context: http://r.789695.n4.nabble.com/Plotting-range-of-values-in-barplot-tp2315414p2315725.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https:/

Re: [R] Plotting range of values in barplot()

2010-08-05 Thread Marc Schwartz
On Aug 5, 2010, at 1:22 PM, yankeetilidie wrote: > > Hello, > > I am attempting to create a bar plot that contains a range of possible > response values on the x-axis of 1 to 5 and contains barplots for the number > of responses even in the event that there are 0 responses. For example, I > hav

[R] Plotting range of values in barplot()

2010-08-05 Thread yankeetilidie
Hello, I am attempting to create a bar plot that contains a range of possible response values on the x-axis of 1 to 5 and contains barplots for the number of responses even in the event that there are 0 responses. For example, I have a data set that contains values of 2, 3, 4, and 5 but I would