[R] barplot of a table

2010-06-09 Thread Phillip Porter
Good morning, I've been dabbling in R, so my knowledge has quite a few holes in it. I'm hoping that this has a simple answer and just falls into one of those holes. I have a table of percentages that I want to display as a barchart. Groups 1-4 in columns and Variables 1-5 in rows, with the perce

Re: [R] working with groups of labels?

2009-05-11 Thread Phillip Porter
At 9:25 PM +1000 5/11/09, Jim Lemon wrote: >Hi Phillip, >I'm not exactly sure how you are positioning the labels. Is it >possible to give us an example with some data that will produce a >plot to show what you want? It shouldn't be too hard to do. > >Jim Data is something along the lines of: v

[R] working with groups of labels?

2009-05-11 Thread Phillip Porter
Good Morning, I have a graph with groups of variables. I have include the group names as variables so that I can have them positioned correctly. Unfortunately this means that the group names have to follow all of the same rules as the variables within the groups. I would rather have those gr

[R] side by side boxplots

2008-11-28 Thread Phillip Porter
Good Morning, I am trying to get side by side boxplots of two groups on the same variable. The last item under ?boxplot led me to some useful code. I use "boxwex" to make the boxes narrower, "at" to shift them over and "add" to draw them both on the same graph. Something along the lines of

Re: [R] bizarre axes with xyplot, problem in data?

2008-10-30 Thread Phillip Porter
still interested in why R orders lattice plots from bottom to top. Thanks, Phillip On Thu, Oct 30, 2008 at 1:25 PM, Phillip Porter <[EMAIL PROTECTED]>wrote: > Good Morning, > I am using xyplot to show two variables for each of several subjects as > follows: > xyplot(y~x|as.factor(

[R] bizarre axes with xyplot, problem in data?

2008-10-30 Thread Phillip Porter
Good Morning, I am using xyplot to show two variables for each of several subjects as follows: xyplot(y~x|as.factor(ID), type="b", layout=c(7,9), scales=list(x=list(tick.number=3), y=list(tick.number=5))) This is almost exactly the code I used for an earlier project, the only change is the number