On Sunday 02 November 2003 04:17, Bernd Weiss wrote:
> Dear all,
>
> I have two factors 'country' and 'status' which I would like to plot via
> barchart (lattice). 'status' consist of three different levels and should
> be the grouping variable,
the correct terminology would be 'conditioning' va
On Wednesday 29 October 2003 09:36, Wolfram Fischer wrote:
> How can I divide a unit by an number
> or average a vector of units, e.g.:
>
> u1 <- unit( 3, 'npc' )
> u2 <- unit( 6, 'npc' )
>
> u1 / 2
0.5 * u1
> ( u1 + u2 ) / 2
0.5 * (u1 + u2)
> mean( unit.c(u1,u2) )
On Monday 27 October 2003 03:50, Wolfram Fischer wrote:
> If I have drawn a string with ``ltext( x, y, labels="first string" )''
> how can a draw a second string just one line (or strheight("X")
> below the first string regardless of the size and scales of the panel?
No reliable (that is, documen
On Monday 27 October 2003 04:19, Prof Brian Ripley wrote:
> On Mon, 27 Oct 2003, Edzer J. Pebesma wrote:
> > The following now occurs to me when I try to
> >
> > load lattice (R 1.7.1, debian stable):
> > > library(lattice)
> >
> > Error in loadNamespace(i, c(lib.loc, .libPaths()), keep.source) :
>
gt; trellis.device(win.metafile,
>
> + file = "//.../plot1.wmf",
> + width = 8.5, height = 6.25)
>
> > lset( list( background = list(col = "white")))
>
> I get _no_ errors, and xyplot(...) creates the
> appropriate windows metafile.
>
> -dav
On Monday 20 October 2003 12:35, [EMAIL PROTECTED] wrote:
> Hi,
>
> V1.8.0 seems to allow DateTimeClasses as the x argument in xyplots
(lattice).
> For example:
>
> x <- seq.POSIXt(strptime("2003/01/01", format = "%Y/%m/%d"),
> strptime("2003/10/01", format = "%Y/%m/%d"), by = "m
On Sunday 19 October 2003 16:31, Martin Wegmann wrote:
> Hello,
>
> I tried to open lattice, but I get the following error:
> > library(lattice)
>
> Error in loadNamespace(i, c(lib.loc, .libPaths()), keep.source) :
> package `grid' does not have a name space
> Error in library(lattice) : pa
On Sunday 19 October 2003 11:49, Paul, David A wrote:
> For the first error message:
> > win.metafile(file = "//.../plot1.wmf",
> + width = 8.5, height = 6.25)
Could you check what the value of the .Device variable (and .Devices as well)
is at this point ? And not that it should matter, but what
On Saturday 18 October 2003 13:14, Mike Prager wrote:
> R 1.8.0 on Windows XP Professional. A huge THANK YOU to the R Team for
> this marvelous software.
>
> I am making lattice plots of oceanographic data. The usual layout does not
> conform to plotting conventions that marine scientists use whe
On Thursday 16 October 2003 10:03, Stefán Hrafn Jónsson wrote:
> Dear R community.
>
> I have two problems with figures. First deals with short vector on the
> x-axis and the second with two-panel barchart.
> 1) For demonstration I create the following pseudo data for three years,
> 2001:2003. The
On Friday 17 October 2003 03:33, Alexander Sirotkin \[at Yahoo\] wrote:
> > > > > One more (hopefully last one) : I've been very
> > > > > surprised when I tried to fit a model (using
> > > > > aov())
> > > > > for a sample of size 200 and 10 variables and
> > > > > their interactions.
> > > >
> >
On Friday 17 October 2003 02:20, Martin Maechler wrote:
> > "PaulSch" == Schwarz, Paul <[EMAIL PROTECTED]>
> > on Wed, 15 Oct 2003 12:09:11 -0700 writes:
>
> PaulSch> I am converting some S-PLUS scripts that I use for
> PaulSch> creating manuscript figures to R so that I can tak
On Thursday 16 October 2003 17:59, Alexander Sirotkin \[at Yahoo\] wrote:
> Thanks for all the help on my previous questions.
>
> One more (hopefully last one) : I've been very
> surprised when I tried to fit a model (using aov())
> for a sample of size 200 and 10 variables and their
> interactions
On Thursday 09 October 2003 05:40, Wolfram Fischer wrote:
> I tried:
> library(lattice)
>
> F0 <- c( 'A', 'A', 'B', 'B' )
> F1 <- c( 1 , 1 , 1 , 2 )
> F2 <- c( 8 , 9 , 8 , 9 )
> VAL <- c( 20, 50, 10, 60 )
> df <- data.frame( F0, F1, F2, VAL )
>
>
On Monday 06 October 2003 03:19, Edzer J. Pebesma wrote:
> In the example below:
>
> library(lattice)
> n = 100
> a = rnorm(n)
> b = rnorm(n)
> c = sample(c(1:7), n, repl=TRUE)
> xyplot(a ~ b, groups = c, auto.key = TRUE)
> c = sample(c(1:8), n, repl=TRUE)
> xyplot(a ~ b, groups = c, auto.key = TRU
See
http://cm.bell-labs.com/cm/ms/departments/sia/project/trellis/
This is implemented in the lattice package in R, which you can load by
library(lattice)
and perhaps start with
help(Lattice)
On Thursday 02 October 2003 05:50, Mårten Bjellerup wrote:
> I'm an R-beginner and have found the
On Thursday 18 September 2003 17:22, Arni Magnusson wrote:
> Thanks Roger, for pointing out the pretty() function. It's not
> cross-referenced much in the documentation... Your example is not a
> trellis one, but following the same approach:
>
> xyplot(-y~x, scales=list(y=list(at=pretty(-y),
> lab
On Thursday 18 September 2003 10:31 am, Anne Piotet wrote:
> Hello!
> I'm trying my hand at lattice representations; I would like to represent a
> continuous varaiable as function of 2 factors and therefore use the
> following: bwplot(x ~f1| f2) which works fine except that it plots black
> points
On Wednesday 17 September 2003 08:51, David James wrote:
> Prof Brian Ripley wrote:
> > On Tue, 16 Sep 2003, Deepayan Sarkar wrote:
> > > Is the date class standard enough to warrant including a check for it
> > > in lattice ?
> >
> > I don't thin
[Due to problems with my mail client, this message may
eventually reach the list twice. Sorry about that.]
On Wednesday 17 September 2003 08:51, David James wrote:
> Prof Brian Ripley wrote:
> > On Tue, 16 Sep 2003, Deepayan Sarkar wrote:
> > > Is the date class standard
Your IATmedian has some NAs (which are removed by sort) ?
On Thu, 18 Sep 2003, Murray Jorgensen wrote:
> Can anyone explain the following? [R 1.6.0 Windows XP, yes I will
> upgrade soon.]
>
> Murray
>
> > sort(IATmedian)[0:50]==0
> [1] TRUE TRUE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FA
On Wednesday 17 September 2003 01:36, Martin Maechler wrote:
> How can you write (quite short!) R code such that
> typing
> "Q"
>
> -- without any "()" -- will quit R (without asking about saving).
>
> [But you shouldn't really keep that code active in your standard R session
> because it
On Tuesday 16 September 2003 23:51, Jason Turner wrote:
> On Wed, 2003-09-17 at 16:31, Deepayan Sarkar wrote:
> ...
>
> > Is the date class standard enough to warrant including a check for it in
> > lattice ?
>
> I've never used it myself, but the lack of POSIXct s
On Tuesday 16 September 2003 22:00, Charles H. Franklin wrote:
> xyplot doesn't seem to want to label my x-axis with dates but instead puts
> the day-number for each date.
>
> begdate is the number of days since January 1, 1960 and was initially
> created by
>
> library(date)
>
> ...
>
> polls$begd
On Tuesday 16 September 2003 21:26, Murray Jorgensen wrote:
> Rafael A. Irizarry wrote:
> > you can type this:
> >
> > q("no")
> >
> > see the help file for q
>
> Still more work than two mouse clicks.
Start R with --no-save (not sure how/whether this will work on Windows).
__
On Wednesday 10 September 2003 19:23, [EMAIL PROTECTED] wrote:
> ##--- Not working part--XXX
> update(plot4, key = list(corner=c(0,1), x=0.65, y=0.35,
> lines=list(c(1:2),col="black",lwd=1,lty=c(1:2)),
>
On Tuesday 09 September 2003 10:35 am, Douglas Bates wrote:
> Ernesto Jardim <[EMAIL PROTECTED]> writes:
> > Hi,
> >
> > I want to plot 2 variables (confidence intervals) in a single xyplot. I
> > have a dataframe with variables Yup, Ylo, X and Z and I want to have a
> > xyplot with both variables
Sorry, that's what you get when you don't run your code before sending it.
Should be panel.superpose instead of panel.xyplot, since you want a grouped
display. e.g.,
xyplot(Sepal.Length + Sepal.Width ~ Petal.Length ,
data = iris, allow.multiple = TRUE, scales = "same",type="l",
pa
On Tuesday 09 September 2003 05:48, Andrew C. Ward wrote:
> Dear Manbub,
>
> I assume that you mean you want the boxes to be vertical
> rather than horizontal (which is the default). Compare the
> following two uses of bwplot:
>data(singer)
>bwplot(voice.part ~ height, data=singer, xlab="He
On Tuesday 09 September 2003 04:49, Marc Mamin wrote:
> Hallo,
>
> I'd like to add grid lines to a lattice graph having 2 series of Y data.
>
> See these 2 examples:
>
>
>
> data(iris)
>
> [1]
> xyplot(Sepal.Length + Sepal.Width ~ Petal.Length ,
> data = iris, allow.multiple = TRUE, sca
On Monday 08 September 2003 23:36, Patrick Connolly wrote:
> I have a lattice plot that has 4 pages with 4 columns and 8 rows per
> page. I wish to have the rows use a separate x-axis since their
> ranges are quite different, but I wish to have those same limits used
> on each page.
>
> By setting
If they are non-intersecting planes, wireframe() from the lattice package
_may_ help you. See example(wireframe). [Warning: the algorithm is quite
crude (and slow) and doesn't always work.]
On Monday 08 September 2003 10:48, Mark Lamias wrote:
> I am trying to graph two planes on the same graph
The bioconductor project [1] might be of interest to you, and its mailing list
[2] is probably more appropriate for your question.
[1] http://www.bioconductor.org
[2] https://www.stat.math.ethz.ch/mailman/listinfo/bioconductor
HTH,
Deepayan
On Sunday 07 September 2003 12:28, Peter Hornbeck wr
Oops, forgot the attachment.
On Friday 05 September 2003 12:45 pm, Deepayan Sarkar wrote:
> The prepanel function returns separate limits for x and y axes. This does
> not translate to splom, since each limit is used on both the x and y axes.
> However, it is natural to add a new
On Friday 05 September 2003 10:04 am, Ted Harding wrote:
> Another query:
>
> I'm now trying to have the x- and y-axes all on the same scale
> (0:15) in every panel, whereas the default behaviour of splom
> is to scale them according to the ranges of the individual
> variables in each panel.
>
> So
.) {
panel.xyplot(log(1 + x), log(1 + y), ...)
ok <- (x > 0) & (y > 0)
fm <- lm( log(y[ok]) ~ log(x[ok]) )
panel.abline(fm, ...)
})
Deepayan
>
> Thanks!
> Ted.
>
> On 04-Sep-03 Deepayan Sarkar wrote:
> > You
You can't do it in that sequence, and whether you can do it at all depends on
exactly what you mean when you say that the data used for the regressions are
not the same as those used for the plots. The typical way would be to do
splom(DF,
panel = function(x, y, ...) {
panel.xy
For example (variations are possible),
y <- 100 * runif(400)
a <- gl(4, 100)
x <- gl(3, 7, 400)
library(lattice)
bwplot(y ~ x | a, scales = list(y = "free"),
ylim = list(c(0, 100), c(0, 200), c(0, 100), c(0, 200)))
(Assuming you have up to date versions of R and lattice).
On Thursday
This is a bug in grid.lines. A possible workaround is to use your own function
that handles this using grid.segments (or lsegments).
On Wednesday 03 September 2003 09:09 am, Bodo Ahrens wrote:
> Hallo helpers,
>
> I tried to use "llines" of package lattice in e.g.
>
> levelplot(z~x+y,xyz, at=c.a
>From ?data.frame:
Character variables passed to 'data.frame' are converted
to factor columns unless protected by 'I'. If a list or data frame
or matrix is passed to 'data.frame' it is as if each column had
been passed as a separate argument.
See the Examples section for an e
The typical graphical representation for shingles is via plot.shingle, e.g.
a <- equal.count(rnorm(100))
plot(a)
I'm not sure how you wish to represent this information inside the histogram
plot itself, but everything you need should be available inside the strip
function. For example,
#
Let's consider this simulated data:
foo <- data.frame(resp = do.call("c", lapply(as.list(rep(6, 12)),
function(x) sort(rnorm(x,
week = rep(2*0:5, 12),
id = factor(rep(1:12, each = 6)))
Does the following give you what you want ?
xyplot(r
On Friday 29 August 2003 05:22, Edzer J. Pebesma wrote:
> Consider the following examples:
>
> library(lattice)
> x = c(1,1,2,2)
> y = c(1,2,1,2)
> z = 1:4
> levelplot(z~x+y,at=c(.5, 1.5, 2.5, 3.5, 4.5)) # correct
> levelplot(z~x+y,at=c(.5, 1.5, 2.5)) # ?
>
> The second plot is clearly in
lm() implicitly assumes the presence of the intercept term in the model, i.e.,
> lm(data ~ ftr)
is actually fitting
> lm(data ~ 1 + ftr)
You can override this by doing
> lm(data ~ ftr - 1)
You can always check the actual model being fitted by extracting the model
matrix:
> model.matrix(d
On Saturday 23 August 2003 13:02, Eugene Salinas wrote:
[...]
> Hi, Thanks a lot. This seems like what I want to do. I
> don't know all the syntax yet so just a
> clarification...
>
> Is the []n = 100)$y there in order to condition
> on y which is the year and derive the conditional
> kernel d
On Saturday 23 August 2003 10:36, Eugene Salinas wrote:
> Deall all,
>
> I'm just learning R, but unfortunately I need to
> urgently do a rather more complex task so I need some
> help. I have just learnt the very basics a few days
> ago and am not ready yet to deal with panels and
> kernel densiti
On Friday 22 August 2003 16:35, Peter Dalgaard BSA wrote:
> [EMAIL PROTECTED] writes:
> > I tried to use substitute in legend as follows:
> >
> > pval <- 0.04
> > plot(0)
> > legend(1,0.5,substitute(hat(theta) == p, list(p = pval)))
> >
> > For some reason the legend is repeated 3 times.
> >
> > An
On Thursday 21 August 2003 07:42, Edzer J. Pebesma wrote:
> In the example:
>
> x = rep(c(0,0,1,1),4)
> y = rep(c(0,1,0,1),4)
> z = c(1,0,1,0,0,0,1,1,0,1,0,0,1,1,1,1)
> f = as.factor(c(rep("a",4),rep("b",4),rep("c",4),rep("d",4)))
> levelplot(z~x+y|f,data.frame(x=x,y=y,z=z,f=f))
>
> I noted that th
Looks like a bug. I'll investigate.
Thanks,
Deepayan
On Thursday 21 August 2003 07:42, Edzer J. Pebesma wrote:
> In the example:
>
> x = rep(c(0,0,1,1),4)
> y = rep(c(0,1,0,1),4)
> z = c(1,0,1,0,0,0,1,1,0,1,0,0,1,1,1,1)
> f = as.factor(c(rep("a",4),rep("b",4),rep("c",4),rep("d",4)))
> levelplot
On Thursday 21 August 2003 05:04, Uwe Ligges wrote:
> Brunschwig, Hadassa {PDMM~Basel} wrote:
> > Hi all,
> >
> > well i know this was probably already posted many times, couldnt find
> > anything about it though. This is a beginner problem. I have a Trellis
> > plot which is very large, i.e. it on
On Sunday 17 August 2003 12:50, Gabor Grothendieck wrote:
> One gets a different response when abbreviating collapse= in
> paste? In the second case, it appears to be acting as if " + " is just
> another argument to be pasted.
You can't abbreviate the collapse argument. In general, anything after
"A Tour of Trellis Graphics" ( http://cm.bell-labs.com/cm/ms/departments/sia/
project/trellis/software.writing.html ) says that:
`The tmd function computes a Tukey mean and difference plot. It is unusual
since it takes as an argument the output of one of the other plotting
functions and it p
On Wednesday 13 August 2003 07:43, Brunschwig, Hadassa {PDMM~Basel} wrote:
> Hello everyone
>
> I have data grouped by subjects and i used the trellis plot to show the
> curve for each subject. I have another vector "a" which gives me the
> highest points the curves for each subjects can achieve (
On Thursday 24 July 2003 20:26, Uwe Ligges wrote:
> Jerome Asselin wrote:
> > You can specify some options in "par.box". Use col=NA to make the frame
> > transparent. See example below (which was modified from the help file).
> > See also the "scales" parameter if you want to remove the arrows as w
On Friday 18 July 2003 12:28, [EMAIL PROTECTED] wrote:
> Message: 9
> Date: Thu, 17 Jul 2003 13:50:29 +0200
> From: Marc Mamin <[EMAIL PROTECTED]>
> Subject: [R] line colors in lattice.xyplot with png device.
> To: [EMAIL PROTECTED]
>
> Hi,
>
> R is very new for me, so excuse if my questions are to
Could you try with the latest lattice (0.7-13) ? I don't see an error with it.
It's not immediately obvious to me where the problem could have come from,
but there were a bunch of similar problems fixed recently.
On Thursday 05 June 2003 08:21, Hotz, T. wrote:
> Dear all,
>
> Please take my apo
On Thursday 05 June 2003 06:41, Ernesto Jardim wrote:
> Hi
>
> I'm doing a xyplot and I wand to reduce the number of tick marks in the
> x axis. My x axis are month and I want to reduce the 12 tick marks to 4.
> I used the scales argument but it doesn't seem to work, althougth it
> works on y axis
I'm still not completely sure what you are after, but if indeed you want to
change the color of the rectangle borders, how about this ?:
x <- rnorm(100)
y <- rnorm(100)
a <- factor(sample(1:4, 100, rep = T))
lset(list(axis.line = list(col = "grey")))
xyplot(y ~ x | a)
(Make sure you have a re
On Wednesday 04 June 2003 13:48, Liaw, Andy wrote:
> > From: Deepayan Sarkar [mailto:[EMAIL PROTECTED]
> >
> > On Wednesday 04 June 2003 04:26, Mulholland, Tom wrote:
> > > I am probably missing something quite obvious, but any help would be
> > > apprecia
On Wednesday 04 June 2003 04:26, Mulholland, Tom wrote:
> I am probably missing something quite obvious, but any help would be
> appreciated. I am continually getting people misreading the lattice plots
> because they are expecting the strip (with the factor names in them) to be
> below the graph.
scatterplot3d in package scatterplot3d
cloud in package lattice
On Wednesday 04 June 2003 10:31, Michele Grassi wrote:
> how can i draw a 3d scatter plot? thank you.
>
> __
> [EMAIL PROTECTED] mailing list
> https://www.stat.math.ethz.ch/mailman/listinf
On Friday 04 April 2003 12:04 am, [EMAIL PROTECTED] wrote:
> Hi list,
>
> I am unsuccessfully trying to produce a serious of trellis barcharts from
> within a for-loop. The barcharts work outside the loop. What am I missing?
An explicit print() outside the barchart call. The result of barchart is
On Sunday 30 March 2003 03:30 pm, Peter Ho wrote:
> Hi lattice users,
>
> Is there a way to automatically save trellis plots , when "layout" is
> used to produce graphs on more than one page (graph window). In the
> example below, I have 4 graphs on each of 4 pages. I want to save each
> page se
For example ?
On Saturday 29 March 2003 12:55 am, Fredrik Lundgren wrote:
> Hello,
> I'm using linux R 1.6.2 and have a named vector (double) which I want too
> plot with lattice and dotplot. I want both names and values ordered by the
> vector. In S-Plus this was easy in R I fail.
>
> Sincerely
On Friday 21 March 2003 02:36 pm, Liaw, Andy wrote:
> Dear R-help,
>
> Can some one tell me how to do the following (if it's possible)?
>
> Suppose I have a function like this:
>
> f <- function(x, y, ...) {
> ## some code
> g(x, y, ...)
>## some more code
> }
Why not (in the context y
On Sunday 16 March 2003 09:16 pm, Robin Hankin wrote:
> Hi
>
> I recently found a bug that was isomorphic to the following:
>
> ll1 <- 2
> increment <- function(x)
> {
> l11 <- 1
You are not really using this variable (l11, not ll1) anywhere. Is that a
typo? What exactly do you want to happen ?
On Tuesday 11 March 2003 05:00 pm, Till Baumgaertel wrote:
> Hi,
>
> how can I scale the x- and y-axis of a "plot" to the same scale?
>
> My problem: The following command sequence produces the plot in a square.
> What I want is the x-axis to be 5 times as wide (measured e.g. in pixels)
> as the y-
You need to change the (lattice) background setting AFTER starting the png()
device (lattice maintains separate settings for different devices).
If you use png() to start subsequent devices, the same settings will be
re-used. (The alternative is to use trellis.device(), which is the more
trad
On Saturday 08 March 2003 08:31 am, Jens Scheidtmann wrote:
> Dear R Users,
>
> When plotting with "splom" I tried to use the pscales=list(...) feature
Well, looks like you are the first person ever to actually use this feature
:-)
> Unfortunately it didn't work at all. Instead the scales always
On Saturday 08 March 2003 04:40 pm, Craig Aumann wrote:
> I'm using the "cloud()" function to plot some data, but
> cloud (and also wireframe) put an external box around the entire plot.
> I can't figure out how to get rid of this external box. How do I turn it
> off?
You can't currently.
There
See http://www.math.montana.edu/Rweb/
On Monday 03 March 2003 11:00 pm, Bai Yan wrote:
> Hello all,
>
> I want to create webpages which can display the R results. The first step
> is essentially getting input from client, generating graphics and
> returning a page containing those images.
>
> Wha
You need to use llines instead of lines (lines doesn't produce any output with
grid graphics).
Quoting "Bliese, Paul D MAJ WRAIR-Wash DC" <[EMAIL PROTECTED]>:
> Platform: WIN2000
> Version of R: 1.6.2
>
> I'm interested in plotting fitted values in a trellis xyplot. I believe
> the
> follow
Are you talking about lattice ?
If so, help(singer) brings up the following:
trellis.datasets package:lattice R Documentation
Data Sets in the Lattice library
Description:
These data sets are inclu
On Friday 21 February 2003 08:02 am, Thomas Gerds wrote:
> hi,
>
> it occurs quite naturally that groupnames have so many characters that
> they overlap as horizontally printed labels for the xaxis in a
> dotplot. is it possible to turn ('par(las=1)') the (x)axis-labels in a
> dotplot?
See the '
No.
On Friday 14 February 2003 04:37 pm, Vadim Ogranovich wrote:
> Dear R-Users,
>
> Is there a way to interactively get location of a point on a graph produced
> by xyplot() of lattice package (similar to what locator() does with a
> regular plot)?
>
> Thanks, Vadim
See ?edit
If you use ESS, C-c C-d.
On Friday 14 February 2003 04:07 pm, Joshua Gramlich wrote:
> Is there a way to edit user defined functions once they've been
> created? For instance, I've a simple function that plots a table, but
> I'd like to go back and add more parameters to the barplot c
On Thursday 13 February 2003 06:08 pm, Christopher Adolph wrote:
> I'm working with a levelplot in which the x's are unequally spaced:
>
> x = {.8,.85,.9,.91,.92,.93,.94,.95,.96,.97,.98,.99,1}
>
> It seems this results in a "gap" in the plot in the vicinity of x = 8.75
> to 8.85 or so. I assume th
?which
On Thursday 13 February 2003 03:40 pm, Jason Bond wrote:
> Hello. Sorry for the elementary post. I've looked through the
> documentation, but can't seem to find a function which allows one to
> extract the position of an element within a list...for example the position
> of the element 4
On Tuesday 11 February 2003 04:40 pm, [EMAIL PROTECTED] wrote:
> I have what is likely to be a simple question about the else keyword.
>
> The usage in the help pages is as follows:
>
> if(cond) cons.expr else alt.expr
>
> I would expect to be able to use it in the following way as well:
>
On Sunday 09 February 2003 05:19 pm, Christopher Adolph wrote:
> I have a few questions on formatting wireframe plots:
>
> 1. How can I remove (or at least "white-out") the border on the plot?
> (I.e., the 2-d box around the whole plotting area, not the 3-d cube). I'm
> willing to hack the code i
On Saturday 08 February 2003 12:41 am, Mitsuo Igarashi wrote:
> Hi All.
>
> I am quite a newbie to R.
> This is a basic question.
>
> I like to modify elements of a vector.
> For Example:
> a1 <- c(1,2,3,4,3,5)
>
> TThe following program sentence does not work but the intention is;
>
> if (a1==3)
On Monday 03 February 2003 03:47 pm, Yang, Richard wrote:
> Dear all;
>
> I wish to create a graphic object combing an xyplot() and an mtext().
You cannot. xyplot() uses grid for all its graphics, and grid graphics cannot
be used in conjunction with base R graphics functions.
> My
> code looks
Might have something to do with .Machine$double.eps on the respective
machines.
>From help(.Machine),
double.eps: the smallest positive floating-point number `x' such that
`1 + x != 1'. It equals `base^ulp.digits' if either `base'
is 2 or `rounding' is 0; otherwise, it is
See ?print.trellis
On Friday 31 January 2003 11:50 am, Yang, Richard wrote:
> Dear all;
>
> I have a set of 5 xyplots each with 8 panels and wish to place 2 on
> a letter-sized page. I tried using pdf() to specify paper size and plot
>
> size:
> >pdf(file = "fig1b.pdf", paper = "letter", on
On Friday 24 January 2003 02:50 pm, Frank Mattes wrote:
> Dear R list subscriber,
>
> I'm hoppiing my question didn't come up so far. I try to do somthing simple
>
> a<-c(1,4,5,2,7,34,56,78,76,54)
> b=c(a<-c(1,4,5,2,7,34,56,78,76,54)
???
> c<-c(0,0,0,0,0,1,1,1,1,1)
>
> I would like to get a sca
On Friday 24 January 2003 10:54 am, Wolfram Fischer - Z/I/M wrote:
> [ R 1.6.1 ]
>
> PROBLEM
> The plot of the appended code does produce
> a postscript file which is not interpretable
> by gv under Linux.
The srt vector has several NA's. x11() does not draw these, which may or may
no
On Tuesday 21 January 2003 03:47 pm, Eric Peterson wrote:
> Sorry, but I'm very new to R. I'm trying to figure out how to convert a
> column from a data frame to a vector. More specifically, I have read in a
> comma separated value table which contains a number of variables in
> columns, plots in
On Tuesday 21 January 2003 02:19 pm, Nirmala Ravishankar wrote:
> While using xyplot or barchart, how does on move the x or y axis? I am
> trying to plot ratios ranging from 0.77 to 1.3 in a bargraph, with the y
> axis at x = 1. I want ratios greater than 1 to appear as on the right side
> of the
On Monday 20 January 2003 02:37 pm, Rob Balshaw wrote:
> I'm trying to add a set of reference lines to a multipanel xyplot
>
> xyplot(y ~ x | Visit,
> panel = function(x, y, ...){
> panel.xyplot(x, y, ...)
> abline(v = c(0.5, 1))
> })
>
> However, the reference lines are dif
On Friday 17 January 2003 12:44 pm, [EMAIL PROTECTED] wrote:
> Dear all
>
> I am fighting with contour plot.
>
> I have a continuous response and three factors. The formula argument in
> function contourplot() does not like the factors. What I got is really
> nonsense, loads of squares in the plot
On Thursday 16 January 2003 02:10 pm, Patrick Connolly wrote:
> On Wed, 15-Jan-2003 at 10:47PM -0600, Deepayan Sarkar wrote:
> |> On Wednesday 15 January 2003 07:35 pm, Patrick Connolly wrote:
> |> > _
> |> > platform i686-pc-linux-gnu
> |> > arc
On Wednesday 15 January 2003 07:35 pm, Patrick Connolly wrote:
> _
> platform i686-pc-linux-gnu
> arch i686
> os linux-gnu
> system i686, linux-gnu
> status
> major1
> minor6.2
> year 2003
> month01
> day 10
> language R
>
>
> Until this version, I've not h
On Wednesday 15 January 2003 05:15 am, Wolfram Fischer wrote:
> I am interested to know how to make for clouds:
> - aspect ratio = 1
> - labels attached to points
> - vertical lines from the points to the x/y base plane
>
> I tried:
> t = c( 'A', 'B', 'C', 'D' )
> x = c( 100, 0, 200, 100
On Wednesday 15 January 2003 09:41 am, Michael A. Miller wrote:
> I'd like to use stripplot for some plots because I want to use
> the jitter parameter. On the other hand, I'd like to use dotplot
> because I'd like to have the horizontal lines that it includes.
> dotplot doesn't have a jitter opti
On Tuesday 14 January 2003 09:20 pm, Patrick Connolly wrote:
> I had occasion to use panel.superpose to draw points in a lattice
> plot, and chose to set the size to 1.1 using trellis.par.set(). I
> also wished to add some other plotting characters which I did with
> grid.points. To get them look
On Monday 13 January 2003 05:22 pm, Saurav Pathak wrote:
> Hi,
>
> I am trying to plot densities given on a two dimensional grid. My
> data is in the an external file, and is arranged in three columns:
> x, y, density
>
> how may i get a plot of this? i would like to get (1) a three
> dimensional
On Wednesday 08 January 2003 11:27 am, [EMAIL PROTECTED] wrote:
> I have a feeling that this was already discussed here, but I cannot
> remember the outcome of the discussion.
>
> I would like to have the col.whitebg theme as a default and I cannot figure
> out how to do it. Functions like lset or
On Tuesday 07 January 2003 09:45 pm, Olivia Lau wrote:
> I am trying to plot two density lines on the same graph. Using the
> functions on the base package, I would go:
>
> plot(density(x), col = 1)
> lines(density(y), col = 2)
>
> And I get two distinct (one-bump) density lines. When I try to do
On Thursday 19 December 2002 04:30 pm, Peter Dalgaard BSA wrote:
> Deepayan Sarkar <[EMAIL PROTECTED]> writes:
> > two, the problem seems to be a small change in grid.text. The older
> > version seems to work:
> >
> > grid.text <- function(label,
On Thursday 19 December 2002 01:35 pm, [EMAIL PROTECTED] wrote:
> I just ran package update on my Win2000 R-1.6.1 and it installed new
> versions of lattice and grid (0.6-7 and 0.7-3 respectively). Then I ran
> demo(lattice) and noticed that the last plot, which is supposed to
> illustrate math ex
801 - 900 of 901 matches
Mail list logo