Re: [R] lattice plot: points and lines for different variables in same plotlattice plot

2015-10-04 Thread Duncan Mackay
xani Sent: Monday, 5 October 2015 05:30 To: r-help@r-project.org Subject: [R] lattice plot: points and lines for different variables in same plotlattice plot I want to draw scatter plot and a fitted line in the same lattice plot. My problem is that either both can be plotted as points or both

Re: [R] lattice plot formatting: pch, abbreviation and labels

2014-04-29 Thread Duncan Mackay
)), # rot = 0 if labels as before Duncan -Original Message- From: Luigi Marongiu [mailto:marongiu.lu...@gmail.com] Sent: Tuesday, 29 April 2014 04:34 To: Duncan Mackay Subject: Re: [R] lattice plot formatting: pch, abbreviation and labels Dear Duncan, sorry to pester you again

Re: [R] lattice plot formatting: pch, abbreviation and labels

2014-04-29 Thread Duncan Mackay
)), # rot = 0 if labels as before Duncan -Original Message- From: Luigi Marongiu [mailto:marongiu.lu...@gmail.com] Sent: Tuesday, 29 April 2014 04:34 To: Duncan Mackay Subject: Re: [R] lattice plot formatting: pch, abbreviation and labels Dear Duncan, sorry to pester you again

Re: [R] lattice plot formatting: pch, abbreviation and labels

2014-04-29 Thread Duncan Mackay
To: Duncan Mackay Subject: Re: [R] lattice plot formatting: pch, abbreviation and labels Dear Duncan, I think the solution is close by. I can now plot the segments directly with stripplot using a vector containing the required positions; the only problem is to generate 4 consecutive indeces using

Re: [R] lattice plot formatting: pch, abbreviation and labels

2014-04-27 Thread Duncan Mackay
- From: Luigi Marongiu [mailto:marongiu.lu...@gmail.com] Sent: Monday, 28 April 2014 04:03 To: Duncan Mackay Subject: Re: [R] lattice plot formatting: pch, abbreviation and labels Dear Duncan, may I bother you a bit more with the same data set? I would like now to add a segment corresponding

[R] lattice plot formatting: pch, abbreviation and labels

2014-04-26 Thread Luigi Marongiu
Dear all, I am trying to use the lattice plot, but the syntax is quite difficult. Specifically I have eight variables (1 to 8) each of them further subdivided in two classes (negative=0 and positive=1). I am using the stripplot() to represent these values. I would like to represent the negative

Re: [R] lattice plot formatting: pch, abbreviation and labels

2014-04-26 Thread Duncan Mackay
April 2014 02:07 To: r-help@r-project.org Subject: [R] lattice plot formatting: pch, abbreviation and labels Dear all, I am trying to use the lattice plot, but the syntax is quite difficult. Specifically I have eight variables (1 to 8) each of them further subdivided in two classes (negative=0

[R] Lattice plot problem outputting to jpeg

2011-07-19 Thread creamers
Hi.I am relatively new to R but was quite pleased with myself at having generated a series of lattice plots as PDFs. I was very surprised when plotting these out as jpegs (or png or tiff) that the strip title information above each lattice plot vanished. The pdf was fine. Has anybody any

Re: [R] Lattice plot problem outputting to jpeg

2011-07-19 Thread David Winsemius
On Jul 19, 2011, at 5:40 AM, creamers wrote: Hi.I am relatively new to R but was quite pleased with myself at having generated a series of lattice plots as PDFs. I was very surprised when plotting these out as jpegs (or png or tiff) that the strip title information above each lattice

Re: [R] Lattice plot problem outputting to jpeg

2011-07-19 Thread creamers
Thanks David...I am trying to plot out data for various consultants by specialty - each specialty has a varying number of consultants - each consultant a varying number of data pointsI found direct access of the elements of the dataframe was the only way to plot this type of variation,

Re: [R] Lattice plot problem outputting to jpeg

2011-07-19 Thread Justin
creamers stephen.creamer at rdeft.nhs.uk writes: Thanks David...I am trying to plot out data for various consultants by specialty - each specialty has a varying number of consultants - each consultant a varying number of data pointsI found direct access of the elements of the dataframe

Re: [R] lattice plot query

2011-06-10 Thread Vijayan Padmanabhan
What is expressed without proof can be denied without proof - Euclide. Dennis Murphy djmu...@gmail.com 06/10/2011 02:26 AM To Vijayan Padmanabhan v.padmanab...@itc.in cc r-help@r-project.org Subject Re: [R] lattice plot query Hi: Try the following - the illustration below

[R] lattice plot query

2011-06-09 Thread Vijayan Padmanabhan
Dear R Group I have the following data for which I am trying to create subject wise lattice plot for a given attribute and product . though the lattice plot is generated, for some reasons that i dont understand in each plot the subject panels take a random order, I would rather want all the

Re: [R] lattice plot query

2011-06-09 Thread Dennis Murphy
Hi: Try the following - the illustration below is for exactly one set of panel plots. Adapt as necessary to your situation: # Reorder the levels of subject - in this case I put them in a new variable MyData$subj - factor(MyData$Subj, levels = c(paste('S', 1:13, sep = ''))) xyplot(value ~ Time |

Re: [R] lattice: plot alignment fails

2010-09-01 Thread Marius Hofert
Okay, I solved it. After using the same arguments for scales (in particular: relation=free), the plots are perfectly aligned. Cheers, Marius On 2010-08-24, at 20:39 , Marius Hofert wrote: Dear expeRts, I would like to have four plots appearing in one figure. The minimal example shows

[R] lattice: plot alignment fails

2010-08-24 Thread Marius Hofert
Dear expeRts, I would like to have four plots appearing in one figure. The minimal example shows this. However, the four figures are not properly aligned. Why? If I comment out the scales=... arguments, then it works, but I would like to use this... :-) Cheers, Marius library(lattice)

[R] Lattice Plot formatting problem/s

2010-01-06 Thread fishman
Hi I am having difficulty getting the right format for a lattice plot I am trying to produce. Here is a pic of the plot as I get it now http://i235.photobucket.com/albums/ee37/scotrivers/lattice_plot01.jpg and here is the code I am using: RN-read.csv(N:/data.dat,header=T)

Re: [R] Lattice Plot formatting problem/s

2010-01-06 Thread Peter Ehlers
fishman wrote: Hi I am having difficulty getting the right format for a lattice plot I am trying to produce. Here is a pic of the plot as I get it now http://i235.photobucket.com/albums/ee37/scotrivers/lattice_plot01.jpg and here is the code I am using: RN-read.csv(N:/data.dat,header=T)

Re: [R] Lattice plot

2009-11-18 Thread baptiste auguie
Hi, ggplot2 can also split the graphs in different panels, d= read.table(textConnection( chr start1 end1 meth positive 1 1 10 20 1.5y 2 2 12 18 -0.7n 3 3 22 34 2.0y 4 1 35 70 3.0y 5 1120 140 -1.3n 6 1180 190

Re: [R] Lattice plot

2009-11-18 Thread Deepayan Sarkar
On Wed, Nov 18, 2009 at 4:14 AM, Tim Smith tim_smith_...@yahoo.com wrote: Hi, I was trying to get a graph in lattice with the following data frame (7 rows, 5 cols): chr start1 end1 meth positive 1   1     10   20  1.5        y 2   2     12   18 -0.7        n 3   3     22   34  2.0        

[R] Lattice plot

2009-11-17 Thread Tim Smith
Hi, I was trying to get a graph in lattice with the following data frame (7 rows, 5 cols): chr start1 end1 meth positive 1 1 10 20 1.5y 2 2 12 18 -0.7n 3 3 22 34 2.0y 4 1 35 70 3.0y 5 1120 140 -1.3n 6 1180

[R] Lattice plot with an extra strip showing group weights

2009-04-01 Thread Jesse Y Cai
Dear r-help, How can I add a strip to show group weights using lattice package? For example, in the following code, I'd like to using wt variable in a trip to demonstrate the relative size of groups. (Following is just the simplest form to demonstrate the question. A conditional variable will

[R] Lattice Plot Ordering?

2008-12-18 Thread Haoda Fu
Hi, When I plot multi-panel in R by using lattice package, the order is always starting from bottom to the top, e.g., panel 1,2,3,4 will looks like the following, 3,4 1,2 How can I change it to 1,2 3,4 ? many thanks! Best, Haoda __

Re: [R] Lattice Plot Ordering?

2008-12-18 Thread Rolf Turner
On 19/12/2008, at 2:03 PM, Haoda Fu wrote: Hi, When I plot multi-panel in R by using lattice package, the order is always starting from bottom to the top, e.g., panel 1,2,3,4 will looks like the following, 3,4 1,2 How can I change it to 1,2 3,4 ? many thanks! Use the ``as.table''