Re: [R] Plotting question

2011-09-08 Thread David Winsemius
On Sep 8, 2011, at 6:38 PM, Andra Isan wrote: Hi All, I am plotting different lines in my graph and the problem I have is that if the first plot has smaller y value than the second plot, I will not be able to see the the top part of the graph. I do the following:plot(p1, avg="vertical", l

Re: [R] Plotting question

2011-08-02 Thread Karl Ove Hufthammer
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 ea

Re: [R] Plotting question

2011-08-01 Thread Indrajit Sengupta
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 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

Re: [R] Plotting question

2011-08-01 Thread Bert Gunter
Well stated, Duncan, and I plead guilty, though I did try to weasel out with caveats. Perhaps I may plead down to a lesser sentence or probation by saying that I was offering what I still believe to be appropriate advice for a general strategy for handling this sort of plotting issue; but that as

Re: [R] Plotting question

2011-08-01 Thread Duncan Murdoch
On 11-08-01 11:48 AM, Bert Gunter wrote: IMHO: On Mon, Aug 1, 2011 at 7:51 AM, Duncan Murdoch wrote: 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

Re: [R] Plotting question

2011-08-01 Thread Bert Gunter
IMHO: On Mon, Aug 1, 2011 at 7:51 AM, Duncan Murdoch wrote: > 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 >> bee

Re: [R] Plotting question

2011-08-01 Thread Gene Leynes
plot(1:10, pch=letters[1:10]) On Mon, Aug 1, 2011 at 4: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 usin

Re: [R] Plotting question

2011-08-01 Thread Duncan Murdoch
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 categori

Re: [R] Plotting question

2009-07-18 Thread jim holtman
Your data has commas in the numbers causing them to be read in as factors: > x <- read.table(textConnection(" ID Cn read_count + 1 MJ-2000-79 10,000 6876 + 2 MJ-2000-80 10,000 23440 + 3 MJ-2000-87 10,000 18787 + 4 MJ-2000-100 8000 4775 + 5 MJ-2000-81

Re: [R] Plotting question re. cuminc

2009-05-16 Thread Uwe Ligges
K F Pearce wrote: Hello everyone, (This is my second question posted today on the R list). and you have still not read the posting guide? It asks you to "provide commented, minimal, self-contained, reproducible code" which also means that you need to tell which packages you are using. I

Re: [R] plotting question

2009-03-14 Thread Gabor Grothendieck
Use reshape in the base of R or melt/cast in the reshape package. Using the former: Lines <- "ID Year V1 1 19801 1 19812 1 19826 1 19834 2 19805 2 19815 2 19825 2 19836" # DF <- read.table("myfile.dat", header = TRUE) DF <- read.table(textConnect

Re: [R] plotting question

2009-03-14 Thread David Winsemius
On Mar 14, 2009, at 5:46 PM, David Winsemius wrote: On Mar 14, 2009, at 5:14 PM, David Kaplan wrote: Greetings all, I have two questions. I have a data set that is arranged in the example below. I wish to obtain a plot of the performance of each ID over Year on v1. It's not clear how

Re: [R] plotting question

2009-03-14 Thread David Winsemius
On Mar 14, 2009, at 5:14 PM, David Kaplan wrote: Greetings all, I have two questions. I have a data set that is arranged in the example below. I wish to obtain a plot of the performance of each ID over Year on v1. It's not clear how I set this up? ID Year V1 1 19801 1 1981

Re: [R] plotting question

2009-03-14 Thread andrew
check out the interaction.plot. This *may* be what you are looking for. ?interaction.plot On Mar 15, 8:14 am, David Kaplan wrote: > Greetings all, > > I have two questions.  I have a data set that is arranged in the example > below.  I wish to obtain a plot of the performance of each ID over Ye

Re: [R] Plotting question: Problem with strwidth in 2.7.1

2008-06-30 Thread Peter Dalgaard
Lauri Nikkinen wrote: > R users, > > I have a problem with function strwidth in 2.7.1. I'm trying to set > the plot margins in a way that horizontal > column labels will fit to the graph. tmp.t is a list of data.frame > objects. This code works well in 2.6.0. > > I don't think this has to do wit

Re: [R] Plotting question: Problem with strwidth in 2.7.1

2008-06-30 Thread Lauri Nikkinen
Sorry, I found that there is a new bmp() device and when I lower the resolution parameter e.g. to 72, everything works fine. Best Lauri 2008/6/30, Lauri Nikkinen <[EMAIL PROTECTED]>: > R users, > > I have a problem with function strwidth in 2.7.1. I'm trying to set > the plot margins in a way tha

Re: [R] Plotting question

2007-10-12 Thread Eric Thompson
Try par(mar=c(3,4,2,2), mfrow=c(5,2)) On 10/12/07, Leeds, Mark (IED) <[EMAIL PROTECTED]> wrote: > I am constructing plots ( regular not lattice ) and my initial command > is > > par(mar=c(3,4,2,2), mfcol=c(5,2)) > > and then I create 10 plots on the page. It looks great but the plots on > the pa

Re: [R] Plotting question

2007-10-12 Thread hadley wickham
Have you looked at layout() ? Hadley On 10/12/07, Leeds, Mark (IED) <[EMAIL PROTECTED]> wrote: > I am constructing plots ( regular not lattice ) and my initial command > is > > par(mar=c(3,4,2,2), mfcol=c(5,2)) > > and then I create 10 plots on the page. It looks great but the plots on > the page