Re: [R] Plotting Non Numeric Data

2007-11-19 Thread jim holtman
Here is one way to plot your data: # generate 24 cases of 4 letter character strings x <- expand.grid(c("A", "B"), c("C","D"), c("E","F"), c("G","H","I")) x <- apply(x, 1, paste, collapse='') # data to plot y <- factor(sample(x, 200, TRUE)) par(mar=c(5,6,1,1)) plot(seq_along(y), y, yaxt='n', type=

Re: [R] Plotting Non Numeric Data

2007-11-19 Thread Marc Schwartz
On Tue, 2007-11-20 at 00:37 +, Michal Charemza wrote: > Hi, > > Is there a way to plot non numerical data in R? > > Specifically, I have an array, say with 1000 entries, where each entry > is a string of 4 characters (in any order, 24 possibilities in my > case). I would like on the y-ax

[R] Plotting Non Numeric Data

2007-11-19 Thread Michal Charemza
Hi, Is there a way to plot non numerical data in R? Specifically, I have an array, say with 1000 entries, where each entry is a string of 4 characters (in any order, 24 possibilities in my case). I would like on the y-axis all the strings that are in the array as labels. The x-axis I would