xyplot(formula(result), result, type = c( 'g','l'))
See ?formula (the part about the dataframe method) for details.
Bert Gunter
"The trouble with having an open mind is that people keep coming along and
sticking things into it."
-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )
Hi
Following on from Davids reply you can do the following if you want a key or
legend.
By putting the colour scheme in par.settings the "local" equivalent of
setting trellis.par.set() for that plot
you can get things right for the key without having to have add arguments to
key
culr<-ifelse(R
On Aug 26, 2015, at 8:41 PM, Christine Lee via R-help wrote:
> Dear All,
>
> I have tried to plot graphs of one row of four figures for each station. In
> each graph, black points indicate data in the year of 2002, denoted as Y2002,
> whereas grey points indicate data in the year of 2014, den
On Thursday, September 05, 2013 16:39:14 Bert Gunter wrote:
> Daniel:
>
> I wondered if that might be what you meant ...
>
> To amplify a bit on David's response, the answer is that you do **not**
> have separate control over the line width of characters -- lwd controls the
> width of lines in a
On Fri, 6 Sep 2013, S Ellison wrote:
#Test data
ym <-as.data.frame(expand.grid(Y=c(2004:2006, 2010:2012), A=1:4)) #A is an
arbitrary variable to give us some panels.
ym$x <- runif(nrow(ym))
library(lattice)
#Plots without, andf with, a groups argument
xyplot(x~Y|A, data=ym, type="l")
xyplot(
>My xyplot() with superposed multiple condiions looks
> better with lines than with points (it's easier to see
> changes over time with the lines). But, there are gaps in the
> years (the x axis) for which there are data to be plotted.
> For example, there are data for years 2004-2006 and
Hi Rich
This is a case of where data needs to be supplied to go further.
Regards
Duncan
Duncan Mackay
Department of Agronomy and Soil Science
University of New England
Armidale NSW 2351
-Original Message-
From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On
Behal
Daniel:
I wondered if that might be what you meant ...
To amplify a bit on David's response, the answer is that you do **not**
have separate control over the line width of characters -- lwd controls the
width of lines in a graph (exactly as it does in base graphics! ), so you
misunderstood the lw
On Thursday, September 05, 2013 13:40:00 David Winsemius wrote:
> >>> can it be that xyplot does not support the lwd argument?
>
> The lattice plotting system uses the grid plotting engine and does
> accepts some base par-type arguments but not all. You may need to
> read more about lattice and g
On Sep 5, 2013, at 2:54 AM, Daniel Hornung wrote:
On Wed, Sep 4, 2013 at 1:45 PM, Daniel Hornung
wrote:
Hello,
can it be that xyplot does not support the lwd argument?
The lattice plotting system uses the grid plotting engine and does
accepts some base par-type arguments but not all. Yo
> On Wed, Sep 4, 2013 at 1:45 PM, Daniel Hornung
wrote:
> > Hello,
> >
> > can it be that xyplot does not support the lwd argument?
> >
> > At least here, the following still shows thin lines, as opposed to the
> > regular
> > plot command:
> >
> > xyplot(Sepal.Length ~ Sepal.Width, data = iris
You should get no lines at all, as you have not specified that lines be
drawn. Use the "type" argument to do so.
xyplot(rnorm(5) ~1:5,pch=4) ## points only
xyplot(rnorm(5) ~1:5,pch=4,type="b",lwd=4) ## points with thick lines
read ?panel.xyplot carefully (the default panel function for xyplot) f
Thank you
maybe the argument sep of interaction() helps you. Try
>
> interaction( g[,1], g[,2], sep = "/")
>
> Regards -- Gerrit
>
>
>
> I am using this command to draw the figure attached to this mail.
>>
>> xyplot(g[,4]~g[,3],type="b",**group=interaction(g[,1],g[,2])**, auto.key
>> =list( tit
thank you
2013/5/6 Gerrit Eichner
> Hello, Adel,
>
> maybe the argument sep of interaction() helps you. Try
>
> interaction( g[,1], g[,2], sep = "/")
>
> Regards -- Gerrit
>
>
>
> I am using this command to draw the figure attached to this mail.
>>
>> xyplot(g[,4]~g[,3],type="b",**group=inter
Hello, Adel,
maybe the argument sep of interaction() helps you. Try
interaction( g[,1], g[,2], sep = "/")
Regards -- Gerrit
I am using this command to draw the figure attached to this mail.
xyplot(g[,4]~g[,3],type="b",group=interaction(g[,1],g[,2]), auto.key
=list( title="Evolution de la
xYplot has many options that are passed to panel.xYplot. Did you read the
documentation? You can suppress labels, use an automatically generated
Key() function to control where you want keys, and use several other
options. Start with label.curve=FALSE and go from there.
Frank
bwr87 wrote
> I'm
Hi Peter
As for more suggestions
library(latticeExtra)
useOuterStrips(
xyplot(prec~month|year*paste(lat,lon), data=ndata,
as.table = T,
type = c("l", "l","p"), ylim=c(min, max),
layout=c(1,4)) )
have a look at
?strip.custom and ?strip.default as well as ?useOuterStrips for
customi
I am ploting gridded time series data. I would like the actual lat and lon
value appear on the graph-if possible inside the graph as numbers. If there is
also more elegant ways to plot the graphs I will appreciate more suggestions.
#
library(ggplot2)
library(lattic
On Oct 17, 2012, at 1:29 PM, Rich Shepard wrote:
On Wed, 17 Oct 2012, David Winsemius wrote:
What exactly is being requested? Do you just need to learn how to
use the
subset parameter? I would not think that the conditioning syntax
would be
used when there were only one level desired.
D
On Oct 17, 2012, at 1:29 PM, Rich Shepard wrote:
On Wed, 17 Oct 2012, David Winsemius wrote:
What exactly is being requested? Do you just need to learn how to
use the
subset parameter? I would not think that the conditioning syntax
would be
used when there were only one level desired.
D
On Wed, 17 Oct 2012, David Winsemius wrote:
What exactly is being requested? Do you just need to learn how to use the
subset parameter? I would not think that the conditioning syntax would be
used when there were only one level desired.
David,
When I try
xyplot(quant ~ sampdate | era, data
On Oct 17, 2012, at 10:44 AM, Rich Shepard wrote:
The xyplot help page covers several lattice plots and states that
with the
exception of xyplot the formula can have the form x ~ y | c. I need to
generate x-y plots for only one of two levels of a conditioning
factor. What
is the recommend
Thanks very much
--
View this message in context:
http://r.789695.n4.nabble.com/xyplot-ordering-factors-in-graph-tp4576013p4577025.html
Sent from the R help mailing list archive at Nabble.com.
__
R-help@r-project.org mailing list
https://stat.ethz.ch/m
R works on the idea that factor level ordering is a property of the
data rather than a property of the graph. So if you have the factor
levels ordered properly in the data, then the graph will take care of
itself. To order the levels see functions like: factor, relevel, and
reorder.
On Sat, Apr
On 2012-04-15 09:31, David Winsemius wrote:
On Apr 15, 2012, at 11:54 AM, Peter Ehlers wrote:
On 2012-04-15 03:19, Eiko Fried wrote:
Probably a stupidly simple question, but I wouldn't know how to
google it:
xyplot(neuro ~ time | UserID, data=data_sub)
creates a proper plot.
However, if I
On Apr 15, 2012, at 11:54 AM, Peter Ehlers wrote:
On 2012-04-15 03:19, Eiko Fried wrote:
Probably a stupidly simple question, but I wouldn't know how to
google it:
xyplot(neuro ~ time | UserID, data=data_sub)
creates a proper plot.
However, if I add
type = "l"
the lines do not go first th
On 2012-04-15 03:19, Eiko Fried wrote:
Probably a stupidly simple question, but I wouldn't know how to google it:
xyplot(neuro ~ time | UserID, data=data_sub)
creates a proper plot.
However, if I add
type = "l"
the lines do not go first through time1, then time2, then time3 etc but in
about 50
On Apr 15, 2012, at 6:19 AM, Eiko Fried wrote:
Probably a stupidly simple question, but I wouldn't know how to
google it:
xyplot(neuro ~ time | UserID, data=data_sub)
creates a proper plot.
However, if I add
type = "l"
the lines do not go first through time1, then time2, then time3 etc
b
ok this is these are the final results: by relation free vs sliced vs scale
component function
relation free
http://r.789695.n4.nabble.com/file/n4551068/relation_free.png
relation sliced
http://r.789695.n4.nabble.com/file/n4551068/relation_sliced.png
scale component function
http://r.789695.n4
On Wed, Apr 11, 2012 at 7:16 AM, David Winsemius wrote:
>
> On Apr 11, 2012, at 9:03 AM, David Winsemius wrote:
>
>>
>> On Apr 11, 2012, at 6:28 AM, maxbre wrote:
>>
>>> hi, I just realised I want to go a little further in the control of the
>>> chart
>>> appearance and I would like to have the sa
Oh yes, I see now the problem...
thank you
max
--
View this message in context:
http://r.789695.n4.nabble.com/xyplot-lattice-fine-control-of-axes-limits-and-thick-marks-with-log-scale-tp4511897p4549180.html
Sent from the R help mailing list archive at Nabble.com.
___
On Apr 11, 2012, at 9:03 AM, David Winsemius wrote:
On Apr 11, 2012, at 6:28 AM, maxbre wrote:
hi, I just realised I want to go a little further in the control of
the chart
appearance and I would like to have the same number of ticks
displayed in
both axes of all panels
given this code.
On Apr 11, 2012, at 6:28 AM, maxbre wrote:
hi, I just realised I want to go a little further in the control of
the chart
appearance and I would like to have the same number of ticks
displayed in
both axes of all panels
given this code
xyplot(tv ~ ms | sub_family, data=tm,
#as.tab
hi, I just realised I want to go a little further in the control of the chart
appearance and I would like to have the same number of ticks displayed in
both axes of all panels
given this code
xyplot(tv ~ ms | sub_family, data=tm,
#as.table=TRUE,
aspect="xy",
xlab = expres
On Sun, Apr 8, 2012 at 3:42 AM, Kaveh Vakili wrote:
> Hi all,
>
> I have this problem with lattice that xyplot() won't draw some of my axis
> labels if the type (i.e. the relation argument) of scales is set as free. For
> example, in the plot below, I would want it to also show:
>
> 1. the label
Sorry, the B data.frame() didn't copy/paste well. Here is a working version
(hopefully)
B<-structure(list(yval = c(0.7, 0.61, 0.65, 0.63, 6.08, 0.64, 5.68,6.77,
1.48, 7.71, 0.82, 1.15, 0.54, 1.01, 0.59, 4.84, 0.69, 0.71, 8.7, 0.48, 0.69,
4.81, 1.42, 1.19, 0.84, 4.89, 0.85, 0.67, 7.07, 0.66, 7.9
On 04/05/2012 08:41 PM, Camarda, Carlo Giovanni wrote:
Dear R-users,
I'd like to use an xyplot(lattice) in which in each panel I have points with
different point-character and color, and additional lines with the same color.
Please find below a toy example in which I did not manage to change s
yes elai, that's what I want!
thank you for support
maxbre
--
View this message in context:
http://r.789695.n4.nabble.com/xyplot-lattice-fine-control-of-axes-limits-and-thick-marks-with-log-scale-tp4511897p4518205.html
Sent from the R help mailing list archive at Nabble.com.
___
On Thu, Mar 29, 2012 at 3:04 AM, maxbre wrote:
> To answer your question:
> - I did not put relation=’same’ because that is not what I want: i.e **for
> each single panel** (in my case 4) I want to set the same limits for both x
> and y axes (I want the diagonal line exactly bisect each panel);
Elai
Ok, this is my reproducible example
tm<-structure(list(name_short = structure(1:29, .Label = c("D4",
"D5", "D6a", "D6b", "D6c", "D7", "D8", "F4", "F5a", "F5b", "F6a",
"F6b", "F6c", "F6d", "F7a", "F7b", "F8", "P105", "P114", "P118",
"P123", "P126", "P156", "P157", "P167", "P169", "P189", "
On Wed, Mar 28, 2012 at 4:21 AM, maxbre wrote:
> After a long and winding road (sorry but I'm a novice) I get to a final
> result which is quite close to what I need;
> nevertheless I would like to tweak a little further the xyplot
Without dput(mydata) you are the only one who can do that...
so
2012/3/12 David Winsemius :
>
> On Mar 12, 2012, at 4:29 AM, Mauricio Zambrano-Bigiarini wrote:
>
>> 2012/3/9 David Winsemius :
>>>
>>>
>>> On Mar 8, 2012, at 8:02 AM, Mauricio Zambrano-Bigiarini wrote:
>>>
Dear list members,
Within a loop, I need to create an xyplot with only a lege
2012/3/9 David Winsemius :
>
> On Mar 8, 2012, at 8:02 AM, Mauricio Zambrano-Bigiarini wrote:
>
>> Dear list members,
>>
>> Within a loop, I need to create an xyplot with only a legend, not even
>> with the default external box drawn by lattice.
>>
>> I already managed to remove the axis labels and
2012/3/9 Greg Snow <538...@gmail.com>:
> Why do you want to do this? Lattice was not really designed to put
> just part of the graph up, but rather to create the entire graph using
> one command.
To make a long story short, you are right, I need to do this because
my knowledge with trellis graphi
On Mar 12, 2012, at 4:29 AM, Mauricio Zambrano-Bigiarini wrote:
2012/3/9 David Winsemius :
On Mar 8, 2012, at 8:02 AM, Mauricio Zambrano-Bigiarini wrote:
Dear list members,
Within a loop, I need to create an xyplot with only a legend, not
even
with the default external box drawn by latt
On Mar 9, 2012, at 12:10 PM, David Winsemius wrote:
On Mar 8, 2012, at 8:02 AM, Mauricio Zambrano-Bigiarini wrote:
Dear list members,
Within a loop, I need to create an xyplot with only a legend, not
even
with the default external box drawn by lattice.
I already managed to remove the ax
On Mar 8, 2012, at 8:02 AM, Mauricio Zambrano-Bigiarini wrote:
Dear list members,
Within a loop, I need to create an xyplot with only a legend, not even
with the default external box drawn by lattice.
I already managed to remove the axis labels and tick marks, but I
couldn't find in the docum
Why do you want to do this? Lattice was not really designed to put
just part of the graph up, but rather to create the entire graph using
one command.
If you want to show a process, putting up part of a graph at a time,
it may be better to create the whole graph as a vector graphics file
(pdf, po
You specified the aspect ratio, so your plots must have that ratio
of width to height.
It looks like you are trying to control layout by specifying aspect
ratio? That, as you've discovered, is an ineffective way to do it.
Instead, you should specify layout directly, using for your example
layout=
On Fri, 21 Oct 2011, Duncan Mackay wrote:
Without a dataset I am not sure what you need.
Duncan,
Part of the problems I'm trying to resolve come from changing priorities
from my client and the regulators. I end up stopping one process and
starting on a different one. But, that's life in the
Hi Rich
Without a dataset I am not sure what you need.
Further down the track you will need to plot what you finally need
and this may help you decide what you need now
for finals try
library(lattice)
library(latticeExtra)
useOuterStrips(
xyplot(variable1 + variable2 ~ Date|Site, data = Da
On Sep 15, 2011, at 10:44 PM, Alex Olssen wrote:
Dear R-help,
I am drawing a graph using xyplot.
The axis labels only appear on the left and bottom axes - I used the
option
xyplot(scale = list(alternating = 1))
Just read the help page:
?xyplot
There is a tck argument to scales that you
On Wed, Jun 15, 2011 at 6:32 PM, Justin McBride wrote:
> Dennis,
>
> Thanks for your suggestion, but that is not exactly what I was after.
> I was trying to get the legend in the margin on the top right of the
> page and not in the plot frame. Is there a way to do this?
One option is:
xyplot(Yi
Dennis,
Thanks for your suggestion, but that is not exactly what I was after.
I was trying to get the legend in the margin on the top right of the
page and not in the plot frame. Is there a way to do this?
Thanks,
Justin
On Tue, Jun 14, 2011 at 6:03 PM, Dennis Murphy wrote:
> Hi:
>
> Part of t
Hi:
Part of the problem is that you have a point in the upper right corner
of your plot, so one way around it is to expand the y-range. Try this:
xyplot(Yield ~ Date,
groups=Machine, ylim = c(7, 22),
auto.key=list(title="Machine", corner = c(0.95, 1), cex=1.0),
par.settings = l
On Fri, Apr 08, 2011 at 08:14:21AM -0700, Dennis Murphy wrote:
Thanks to everyone who replied! Especialy this and the ggplot advice
did what I wanted.
> xyplot(circumference~age, dat, groups=Tree, type='l',
> col.line = c('red', 'blue', 'blue', 'red', 'red'))
This is essentially what I
Hi:
This seems to 'work':
xyplot(circumference~age, dat, groups=Tree, type='l',
col.line = c('red', 'blue', 'blue', 'red', 'red'))
After a little more fiddling around, this also works, and seems a bit less
kludgy:
dat$group2 <- factor(dat$group, labels = c('red', 'blue'))
xyplot(circu
Philipp,
I would do the following with ggplot2:
# Set up data
require(ggplot2)
dat <- Orange
dat$group <- ifelse(dat$Tree%in%c('1','4','5'), 'A', 'B')
# Specify the ggplot group aesthetic as Tree
g1 <- ggplot(data = dat, aes(x = age, y = circumference, group=Tree))
# Specify the geom_point and
On Apr 8, 2011, at 8:06 AM, Philipp Pagel wrote:
Dear ExpeRts,
I am trying to plot a bunch of growth curves and would like to get
some more control over groups and line colors than I seem to have.
Example:
# make some data
dat <- Orange
dat$group <- ifelse(dat$Tree%in%c('1','4','5')
Thank you very much Deepayan. This does exactly what I needed!
Cheers,
Guy Jett
gj...@itsi.com
-Original Message-
From: Deepayan Sarkar [mailto:deepayan.sar...@gmail.com]
Sent: Friday, April 01, 2011 6:51 AM
To: Guy Jett
Cc: r-help@R-project.org
Subject: Re: [R] XYPlot Conditioning
On Sat, Mar 19, 2011 at 2:53 AM, Guy Jett wrote:
> Due to an error on my part, I have renamed the previously attached file from
> T_5-04b_LTC-SE-SO-Compared.csv to
> T_5-04b_LTC-SE-SO-Compared.txt.
> It remains a comma-delimited file so the extension can be changed and used
> per the script, or
On Mar 18, 2011, at 4:13 PM, Guy Jett wrote:
# I need to create an xyplot() where I control the specific order of
# both my conditioning variables. The default code below plots the
# data correctly (dispersed across all 14 columns), but fails in two
# ways. Both the primary conditioning va
David, David, David...you forgot the solid and dashed lines :) It's OK, it
gives me an excuse to look at this from a slightly different angle. [The
intersection() function is a *really* good trick, BTW - thanks for the
reminder.]
Back to the OP. Let's re-read the data:
dat=data.frame(Age = rep(c(
On Mar 7, 2011, at 8:37 AM, Marcos Prunello wrote:
Hi! I have a dataframe like this:
dat
=
data
.frame
(Age=c(rep(30,8),rep(40,8),rep(50,8)),Period=rep(seq(2005,2008,1),
3
),Rate
=c(seq(1,8,1),seq(9,16,1),seq(17,24,1)),Sex=rep(c(rep(0,4),rep(1,4)),
3))attach(dat)dat
Age Period Rate Sex1
On Fri, Feb 18, 2011 at 8:35 PM, Dennis Murphy wrote:
> Hi:
>
> Here's another approach using the reshape package:
>
> library(reshape)
> # id defines the grouping variables; the others are stacked, creating
> # new variables 'variable' (containing the variable names as factor levels)
> and
> # '
Hi:
Here's another approach using the reshape package:
library(reshape)
# id defines the grouping variables; the others are stacked, creating
# new variables 'variable' (containing the variable names as factor levels)
and
# 'value' (which holds the corresponding values)
dfm <- melt(df, id = c('co
On Fri, Feb 18, 2011 at 5:42 PM, Phil Spector wrote:
> Geoff -
> I think this will get you closer to a solution:
>
Yes, much closer, many thanks.
Geoff.
>
> newdf = reshape(df,varying=names(df)[-c(1,2)],direction='long',
>times=2000:2003,idvar=c('country','food'),v.names='X',
Geoff -
I think this will get you closer to a solution:
newdf = reshape(df,varying=names(df)[-c(1,2)],direction='long',
times=2000:2003,idvar=c('country','food'),v.names='X',
timevar='year')
xyplot(X~year|country*food,data=newdf)
> -Original Message-
> From: r-help-boun...@r-project.org [mailto:r-help-bounces@r-
> project.org] On Behalf Of Jannis
> Sent: Monday, February 14, 2011 4:48 AM
> To: Nick Torenvliet
> Cc: R-Help
> Subject: Re: [R] xyplot text sizing
>
> Trellis graphs can be a pain
Trellis graphs can be a pain regarding their parameters ;-)
Try to run trellis.par.get() after you produced the plots and try to
figure out (by playing around with them) which parameter corresponds to
your text size (I would guess some of the par.sub.text or par.main.text
parameters). Use
> This is a version of FAQ 7.22: you need to tell R to print lattice graphics.
> Without the next statement, the result would be auto-printed.
>
> Duncan Murdoch
That fixed it. Thank you again. Sorry for not reading the FAQ.
Saiwing
__
R-help@r-pro
On 11-01-19 4:54 PM, Saiwing Yeung wrote:
Hi all,
I had a weird problem with xyplot and I am wondering if anyone can help me
figure out what's wrong here. Basically if I call xyplot() inside a function
and I call quartz() after, then the previous xyplot() does not do anything. A
short demo of
Thanks for all your great suggestions! I've learnt a lot about
graphics now..
Kang Min
On Jan 17, 1:46 am, Hugo Mildenberger
wrote:
> Using lattice and the rainfall$Time series as proposed below by Dennis
> gives also a nice result:
>
> rainfall$Time <- seq(from = as.Date('1993-01-01'),
>
Using lattice and the rainfall$Time series as proposed below by Dennis
gives also a nice result:
rainfall$Time <- seq(from = as.Date('1993-01-01'),
to = as.Date('2007-12-01'), by = 'month')
xyplot(rainfall~Time,data=rainfall,type=c("g","p","l","smooth"))
On
Hi:
Arggh, it's too early in my morning...apologies.
With the same adjustment to the data frame as given previously, this
'works':
xyplot(rainfall ~ Time, data = rainfall, type = 'l')
Gabor's solution is nice because it gives you more control over the date
format and the zoo plot method works d
On Sun, Jan 16, 2011 at 8:01 AM, Kang Min wrote:
> Hi,
>
> I would like to plot time against rainfall data (data is at the end)
> using xyplot.
>
> The basic code looks like this: xyplot(rainfall~time, type="a")
> When I do this, the graph looks ok except that the x-axis has too many
> values. I w
Hi:
Try this, since your data have no missing months:
rainfall$Time <- seq(from = as.Date('1993-01-01'), to =
as.Date('2007-12-01'), by = 'month')
g <- ggplot(rainfall, aes(x = Time, y = rainfall))
g + geom_path()
HTH,
Dennis
On Sun, Jan 16, 2011 at 5:01 AM, Kang Min wrote:
> Hi,
>
> I would
Try sample() which will allow you to randomly select 10 ID's from your
ID variable, which you can then plot.
Andrew Miles
On Dec 16, 2010, at 10:49 AM, Rasanga Ruwanthi wrote:
Hi
I am using following code to produce a xyplot for some longitudinal
data. There are 2 panels. It produced all
Simply thank you.
It is exactly what I wanted.
Have nice day,
Ptit Bleu (under snow)
--
View this message in context:
http://r.789695.n4.nabble.com/xyplot-superimposed-2-groups-in-different-panels-tp3065509p3066747.html
Sent from the R help mailing list archive at Nabble.com.
__
On 2010-11-30 06:50, PtitBleu wrote:
Hello,
I would like to plot the following xyplot : for each date of fff (1 date per
panel), bbb=f(aaa) for the two groups (ddd=1 and ddd=2) superimposed.
I can do it by group (see below) but not together.
I looked at http://lmdvr.r-forge.r-project.org/figur
Hi Dennis
Thank you very much - the result was what I was looking for
I looked at the help guide and wrongly interpreted things - I thinking of
the case of density plots where there is only an x value (its been a long
week).
I had hoped to avoid going down the way you had gone but ended up with
Hi:
There are a few things wrong, I believe; hopefully my suggested fix is what
you're after...
On Thu, Oct 28, 2010 at 3:35 PM, Duncan Mackay wrote:
> Hi All
> I have regression coefficients from an experiment and I want to plot them
> in lattice using panel curve but I have run into error mes
Hi Hogbin,
Thank you for the reproducible example! In order to get what you want, you
need to print() your xyplot():
library(lattice)
for(i in 1:10){
print(xyplot(rnorm(100) ~ rnorm(100))) # print()
Sys.sleep(0.5)
}
HTH,
Jorge
On Fri, Oct 22, 2010 at 7:53 PM, Zhang, Hongbin [VA] <
Thank you Deepayan. This is exactly what I needed.
John
- Original Message
From: Deepayan Sarkar
To: array chip
Cc: r-help@r-project.org
Sent: Tue, September 14, 2010 4:52:29 AM
Subject: Re: [R] xyplot axis line width
On Tue, Sep 14, 2010 at 4:26 AM, array chip wrote:
>
On Tue, Sep 14, 2010 at 4:26 AM, array chip wrote:
> Hi, another question: is there any argument that controls the line width of
> axis
> box of xyplot()? I tried lwd=2 or lwd.axis=2 in xyplot() or within
> scales=list()
> argument, without success.
xyplot(1:10 ~ 1:10, par.settings = list(axis.
x27;divide=' argument to key():
key(divide = 1, etc)
See the 'key' section in ?xyplot.
-Peter Ehlers
Thanks very much!
John
- Original Message
From: David Winsemius
To: array chip
Cc: r-help@r-project.org
Sent: Mon, September 13, 2010 4:05:04 PM
Subject: Re: [R
From: Daisy Englert Duursma
To: array chip
Cc: r-help@r-project.org
Sent: Mon, September 13, 2010 8:05:53 PM
Subject: Re: [R] xyplot axis line width
check out ?par for all the details on plotting
‘mgp’ The margin line (in ‘mex’ units) for the axis title,
axis labels and axis line. Note that
check out ?par for all the details on plotting
‘mgp’ The margin line (in ‘mex’ units) for the axis title,
axis labels and axis line. Note that ‘mgp[1]’ affects
‘title’ whereas ‘mgp[2:3]’ affect ‘axis’. The
default is ‘c(3, 1, 0)’.
On Tue, Sep 14, 2010 at 8:56 AM,
From: David Winsemius
To: array chip
Cc: r-help@r-project.org
Sent: Mon, September 13, 2010 4:05:04 PM
Subject: Re: [R] xyplot legends
On Sep 13, 2010, at 6:25 PM, array chip wrote:
> Hi all, I
>
> When I plot both lines and points using type=c('l', 'p') in xy
On Sep 13, 2010, at 6:25 PM, array chip wrote:
Hi all, I
When I plot both lines and points using type=c('l', 'p') in
xyplot(), if I want
to include in legend both of them using keys=list(lines=list(col=1:3),
points=list(pch=1:3)), the lines and points are plotted side by side
in legend.
Yes, event was coded as an integer. As I said, always something simple. I'm
learning.
By the way, I cited lattice in my recent paper in Applied Geochemistry.
Thank you for your work.
On Sep 7, 2010 1:32am, "Deepayan Sarkar [via R]"
wrote:
> On Thu, Sep 2, 2010 at 1:28 AM, jrflanders [hidd
On Thu, Sep 2, 2010 at 1:28 AM, jrflanders wrote:
>
> Thank you! It is always so simple...
>
> May I throw another question at you? In useOuterStrips, in the latticeExtra
> package, I am having problems calling custom strip names, e.g.
>
> useOuterStrips(xyplot(y-x | LOCATION + EVENT, data = TC6,
Thank you! It is always so simple...
May I throw another question at you? In useOuterStrips, in the latticeExtra
package, I am having problems calling custom strip names, e.g.
useOuterStrips(xyplot(y-x | LOCATION + EVENT, data = TC6, groups = TYPE),
strip=strip.custom(factor.
levels = c("Left",
On Wed, Sep 1, 2010 at 9:00 AM, jrflanders wrote:
>
> Dear R users,
>
> I would like one of my groups in xyplot to appear to lie 'behind' the other
> groups. I have searched for help and find many, many topics about panel
> order (e.g., "as.table"), but that is not what I need.
>
> What is odd is
On Fri, Aug 20, 2010 at 4:03 PM, array chip wrote:
> What a simple way to do what I want to do! Thanks.
>
> But if there is missing data in variable "y", then the averaged lines is
> broken
> where the missing data is present. For example:
>
> dat$y[c(10,185,200,400,450)]<-NA
>
> then using type=
7;), panel=function(...)
{panel.xyplot(...);
panel.superpose(..., col=c(1:3), panel.groups=function(...)
panel.average(..., fun=function(x) mean(x,na.rm=T),horizontal=F))})
Thanks
John
From: Dennis Murphy
Cc: r-help@r-project.org
Sent: Fri, Augus
Hi:
Like this?
xyplot(y~day|sex, groups=trt, data=dat, type=c('p','g', 'a'))
The 'a' stands for average line, or 'connect the averages at different x
values'.
By using the groups = trt argument, you get one line per treatment group in
each panel.
A complete list of valid types is given on p. 75
Thank you very much, Chris! Your advice was very helpful for me ;)
--
View this message in context:
http://r.789695.n4.nabble.com/xyplot-I-can-t-find-colors-in-my-picture-tp2326848p2328236.html
Sent from the R help mailing list archive at Nabble.com.
___
Dear Grzesiek
Only pch 21 to 25 can be filled. Pairing fill with plot characters 1:20
will be ignored. You could try overlaying points to increase the number
of unique colour/shape combinations.
Cheers
Chris
Hadley Wickham, Creator of ggplot2 - teaching in the UK. 1st - 2nd
November 2010.
To
Frank E Harrell Jr Professor and ChairmanSchool of Medicine
Department of Biostatistics Vanderbilt University
On Wed, 28 Jul 2010, Kang Min wrote:
Hi Frank,
Thanks for the suggestion. using numericScale() does work for Dotplot,
but there're still a few issues
1 - 100 of 248 matches
Mail list logo