[R] Plotting question

2011-09-08 Thread Andra Isan
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, lwd=3, col=red, main =all graphs)plot(p2,

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,

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 each

[R] Plotting question

2011-08-01 Thread Andrew McCulloch
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 categorical variable for each point. It looks ok

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

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 amccu...@yahoo.co.ukwrote: 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

Re: [R] Plotting question

2011-08-01 Thread Bert Gunter
IMHO: On Mon, Aug 1, 2011 at 7:51 AM, Duncan Murdoch murdoch.dun...@gmail.com 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

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 Murdochmurdoch.dun...@gmail.com 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

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 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 amccu...@yahoo.co.uk To: r-help@r-project.org Sent: Monday, August 1, 2011 3:14 PM Subject: [R] Plotting question Hi

[R] Plotting Question

2010-06-09 Thread Steve_Friedman
Hello, I would like to produce a series of graphs comparing the probability distributions for 8 factors against a continuous metric. The kind of graph I'm hoping to produce would look like the density comparison graphs (library sm) using the function sm.density.compare. However, instead of

[R] Plotting question

2009-07-18 Thread ANJAN PURKAYASTHA
Hi I have a data set that needs to be plotted (see below) When I plot it using the simple plot(read_count ~ Cn), I get box plots for the read_count numbers plotted according to Cn. The Cn's on the x-axis are ordered: 1, 100, 1000, 40, 400, 4000... How do I plot so that Cn is plotted on the

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

[R] Plotting question re. cuminc

2009-05-15 Thread K F Pearce
Hello everyone, (This is my second question posted today on the R list). I am carrying out a competing risks analysis using the cuminc function...this takes the form: cuminc(ftime,fstatus,group) In my study, fstatus has 3 different causes of failure (1,2,3) there are also censored cases (0).

[R] plotting question

2009-03-14 Thread David Kaplan
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 19812 1 19826 1 19834 2 19805

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 dkap...@education.wisc.edu 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

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

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

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 -

[R] Plotting question: Problem with strwidth in 2.7.1

2008-06-30 Thread Lauri Nikkinen
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. ...snip.. library(gplots) for (i in names(tmp.t)) {

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 that

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 with

[R] Plotting question: how to plot SNP location data?

2007-10-30 Thread Lauri.Nikkinen
Hello, I would like to plot specific SNPs with their exact locations on a chromosome. Based on my genotyping results I would like to separate these SNPs in three different categories: 1, 2 and 3 and use different colours to represent these categories. The script below generates the sample data. I

[R] Plotting question

2007-10-12 Thread Leeds, Mark (IED)
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 go in the order 16 27 38 49 510 Where the numbers denote decile breakdowns. Is there

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 go in