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 as l
e,
panel.groups = function(x, y, group.number, ...) {
panel.segments(x0= x-notch, x1=x+notch, y0=mean(y),
y1=mean(y), lty = c(1:2)[group.number],
lwd=c(2:1)[group.number], col = c(1:2)[group.number])
panel.stripplot(x,
lot(x,y, ...)
}
)
If you wanted full N P then
scales = list(x = list(at = c(0,1),
alternating = F,
labels = c("Negative","Positive"),
rot = 90)), # rot = 0 if labe
lot(x,y, ...)
}
)
If you wanted full N P then
scales = list(x = list(at = c(0,1),
alternating = F,
labels = c("Negative","Positive"),
rot = 90)), # rot = 0 if labe
h = datmeA[datmeA[,2]==
levels(datmeA[,2])[pnl],"ratio"], col = c("red","black"), lty=3)
for (j in 1:2){
with(subset(datmeA, (positivity == j-1 & stimulation ==
levels(datmeA$stimulation)[pnl])),
panel.abline(
xt=list(font=2)
)
Regards
Duncan
Duncan Mackay
Department of Agronomy and Soil Science
University of New England
Armidale NSW 2351
Email: home: mac...@northnet.com.au
-Original Message-
From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On
B
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 and
creamers 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 was the only
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,
otherwis
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 plot
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 ideas?
, "217", "218", "219", "220", "221", "222", "223", "224",
"225", "226", "227", "228", "229", "230", "231", "232", "233",
"234
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 |
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 plot
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
> s
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)
set.
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)
DA
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)
DATA<-RN[is.element
On Wed, Nov 18, 2009 at 4:14 AM, Tim Smith 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 y
> 4 1 35
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
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 19
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
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'' argument;
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
__
R-help@r-project.o
24 matches
Mail list logo