On 9/10/07, Ross Darnell [EMAIL PROTECTED] wrote:
Thanks Frede
I didn't know about the r type.
For the record, this is probably what you wanted:
xyplot(...
panel = panel.superpose,
panel.groups = function(x, y, ...) {
panel.xyplot(x, y, ...)
if (length(x)
On 9/6/07, GOUACHE David [EMAIL PROTECTED] wrote:
Hello R-helpers,
I'm trying to add labels to points in xyplot graphs, but I want lo label only
those points which have a certain level of my grouping variable, and have
encountered a few problems.
An example dataframe that goes with the
On 9/5/07, Frede Aakmann Tøgersen [EMAIL PROTECTED] wrote:
This should give you something close to what you want:
xyplot(Petal.Length ~ Petal.Width | Species, iris,
strip = strip.custom(par.strip.text = list(cex = 2)),
par.settings = list(layout.heights=list(strip=1.45)))
The
On 9/5/07, Tom Wright [EMAIL PROTECTED] wrote:
Hi everyone,
I'm hoping you can give me some pointers. I have a requirement to draw
multiple (103) xy line plots onto one output device. Ideally the plots
should be displayed in a hexagonal grid (example at
www.maladmin.com/example.jpg). I can
On 9/5/07, Folkes, Michael [EMAIL PROTECTED] wrote:
HI all,
I'm trying (unsuccessfully) to add the degree symbol to each line of
text in my legend (within xyplot).
Here is the line of code, which fails to interpret the expression
function:
auto.key =list(points =
On 9/4/07, Patrick Drechsler [EMAIL PROTECTED] wrote:
Hi,
what is the correct way of removing the top and right axes
completely from a lattice xyplot? I would like to have a plot similar
to using the bty=l option for traditional plots.
There is no direct analog (and I think it would be weird
On 9/4/07, Folkes, Michael [EMAIL PROTECTED] wrote:
The example code below allows the plotting of three different groups per
panel. I can't fathom how to write the panel function to add an additional
line for each group, which in this case is just the mean Y value for each
group within
On 9/4/07, Folkes, Michael [EMAIL PROTECTED] wrote:
Thank you again Deepayan. I was failing to grasp that I could use
panel.groups as a function. But additionally it's still not intuitive
to me where and when I should use ... to pass arguments on.
In most cases, it's used to pass on
On 9/3/07, Ken Knoblauch [EMAIL PROTECTED] wrote:
Hi,
I was taken off guard by the following behavior in a lattice plot.
I frequently want to add a predicted curve defined at more
points than in the formula expression of xyplot. There have
been numerous examples of how to do this on r-help,
On 8/31/07, Uwe Ligges [EMAIL PROTECTED] wrote:
Johanna Hasmats wrote:
Hi!
How can I get around in R 2.5.1 in Windows:
Error in strsplit(linebuffer, ) : object linebuffer not found
Why should this be a bug in R, if you have no object named linebuffer
in the environments
On 8/31/07, Dave Hewitt [EMAIL PROTECTED] wrote:
At 12:47 PM 8/30/2007 -0700, [EMAIL PROTECTED] wrote:
On 8/30/07, Dave Hewitt [EMAIL PROTECTED] wrote:
Thank you very much... simple and easy fixes.
Threefinal queries:
(1) I need to make a little more room on the left for the
On 8/30/07, Marc Paterno [EMAIL PROTECTED] wrote:
Hello,
I am in need of help in putting histograms on the diagonal of a plot
produced with splom().
The plot matrix I am trying to produce is to have standard scatterplots
in the upper-left triangle, contour plots in the lower-right triangle,
On 8/30/07, Folkes, Michael [EMAIL PROTECTED] wrote:
I've succeeded doing a subset within the panel function of xyplot - if I'm
subsetting based on either the value of 'x' or 'y' (e.g. below). However, I
wish to subset based on the value of another variable and colour that one
plotted
On 8/31/07, Ken Knoblauch [EMAIL PROTECTED] wrote:
Hi,
When I compile the construction
\begin{Scode}{eval=FALSE}
?HSP
\end{Scode}
with Sweave and latex, it outputs in the pdf as,
`?` (HSP)
which is not incorrect but a bit more formal than I wanted
for demonstrating the use of the
On 8/31/07, Christof Bigler [EMAIL PROTECTED] wrote:
The suggestions by Deepayan Sarkar and Hadley Wickham work for that
case, but I get into troubles when I try to draw e.g. a panel for A
and B:
xyplot(y ~ x | f , groups=g, data=tmp,type=l,
par.settings=list(superpose.line=list(col=c
On 8/31/07, Folkes, Michael [EMAIL PROTECTED] wrote:
Thanks Deepayan for your response.
The first subset you suggest was just a test for me and not what I
wanted.
I can't do your second suggested subset action as I wish to plot all the
panel data, but then add a coloured datapoint for just
On 8/30/07, Mike Lawrence [EMAIL PROTECTED] wrote:
Hi all,
Tinkering with a wrapper for xyplot that will help me plot a bunch of
plots in a data analysis I'm doing and I ran into an odd error that
I'm guessing is a scope issue. Here's a very simple version of the code:
It's indeed a scoping
On 8/30/07, Christof Bigler [EMAIL PROTECTED] wrote:
Hi,
I have a dataframe containing data from individuals 1, ..., 12 (grouping
variable g in the data frame below), which belong either to A or B
(grouping variable f):
set.seed(1)
tmp - data.frame(
On 8/30/07, Dave Hewitt [EMAIL PROTECTED] wrote:
I have created an xyplot of a time series with the following code...
win.graph(width = 10, height = 7)
panel1 = function(x, y) {
panel.loess(x, y, lwd=2.5, span=0.5, col=gray)
panel.xyplot(x, y, pch=19, col=blue, cex=1.25)
On 8/30/07, Dave Hewitt [EMAIL PROTECTED] wrote:
Thank you very much... simple and easy fixes.
Threefinal queries:
(1) I need to make a little more room on the left for the larger axis
label. I tried 'mex' in the list for ylab but that was ignored.
It's possible, but shouldn't be necessary.
On 8/29/07, Gen [EMAIL PROTECTED] wrote:
Description of what I am trying to do:
I am using the xyplot code below to plot the variable MeanBxg against the
variable PercentVarExplained for all 9 possible combinations of variables
bdg and bdx. Within each of these 9 scenarios I am plotting a
On 8/23/07, Duncan Murdoch [EMAIL PROTECTED] wrote:
On 8/23/2007 11:28 AM, Prof Brian Ripley wrote:
On Thu, 23 Aug 2007, John Kane wrote:
The FAQ Section 7 is a very useful place for new users
to find out any number of R idiosycracies. However
there is no numbering on the FAQ Table of
On 8/21/07, Horace Tso [EMAIL PROTECTED] wrote:
Hi folks,
This is really minor but to someone not familiar with the various tentacles
of the lmer package it could be really annoying. I was trying to plot the
posterior density of the fixed effect parameters of a lmer model,
hr.mcmc =
On 8/21/07, Stephen Tucker [EMAIL PROTECTED] wrote:
I think you want to use the 'density' argument. For example:
barplot(1:5,col=1)
legend(topleft,fill=1,legend=text,cex=1.2)
par(new=TRUE)
barplot(1:5,density=5,col=2)
legend(topleft,fill=2,density=20,legend=text,bty=n,cex=1.2)
(if you
On 8/21/07, Douglas Bates [EMAIL PROTECTED] wrote:
On 8/21/07, Horace Tso [EMAIL PROTECTED] wrote:
Deepayan, you're right. Now I realize anyone could write a densityplot
function to apply on a different class of objects. I guess I should write
to the author of lme4 which from what I could
On 8/16/07, KOITA Lassana - STAC/ACE
[EMAIL PROTECTED] wrote:
Thank you for you quite and useful explanation. And do know how to sort
them by median?
See ?reorder.factor
Note that traditional practice with bwplot() is to have the
categorical variable on the y-axis, in which case the default
. part of the code came from a solution given by Deepayan Sarkar.
---
library(lattice)
set.seed(12345)
x - 0:20
y.male.obs - - 1.2 * x + 22 + rnorm(length(x), sd = 3)
y.male.prd - - 1.2 * x + 22
y.fema.obs - - 2.2 * x + 30 + rnorm(length(x), sd = 2)
y.fema.prd - - 2.2 * x
On 8/13/07, Yuelin Li [EMAIL PROTECTED] wrote:
Thanks for the quick response. The general use is like the following.
Suppose I have another variable, tkmark, which for cohort 1970 is
coded 1.0 at x = c(7, 19) and 0 otherwise. For cohort 1980, tkmark
is coded 1.0 at x = c(2, 11, 12, 19) and 0
On 8/13/07, Sébastien [EMAIL PROTECTED] wrote:
Dear R-users,
The help does not give much details on the use of the arguments 'from'
and 'to' in the panel.abline function.
Not surprising, since panel.abline doesn't actually have arguments
called 'from' and 'to'.
I have looked in the archives
On 8/5/07, Saptarshi Guha [EMAIL PROTECTED] wrote:
Hi,
After a few modifications in the makefiles, I successfully compiled
the Qt device (written by Deepayan Sirkar) for OS X 10.4.9 on a
Powerbook.
Cool, can you send me the modifications? I haven't managed to compile
qtutils on OS X yet
On 8/4/07, Donatas G. [EMAIL PROTECTED] wrote:
I have a data.frame with ~100 columns and I need a barplot for each column
produced and saved in some directory.
I am not sure it is possible - so please help me.
this is my loop that does not work...
vars - list (substitute (G01_01),
On 8/2/07, Sébastien [EMAIL PROTECTED] wrote:
Dear R-users,
I am using plot symbols given by pch=21:25 in a xyplot. The background
color of these symbols can be defined by 'fill' in the panel argument,
however I have a hard time to find how to define the same background
color in the key. I
On 8/2/07, Sandeman, L. R. [EMAIL PROTECTED] wrote:
Hello,
I have written code to plot an xyplot as follows:
library(lattice)
xyplot(len~ageJan1|as.factor(cohort),groups=sex,as.table=T,strip=strip.c
ustom(bg='white',fg='white'),data=dat,
xlab=Age (January 1st),ylab=Length (cm),main=Linear
On 8/2/07, Richard M. Heiberger [EMAIL PROTECTED] wrote:
The messages are visible in 2.6.0dev
The same commands in 2.4.1 work without warning messages.
I am using the HH_1.18-1 from R_2.4.1 with both R versions and not
the current HH_2.1-3
version$version.string
On 8/2/07, Richard M. Heiberger [EMAIL PROTECTED] wrote:
Thanks Deepayan.
Does that translate that I don't have to do anything else,
and that I can submit the package in its present state to CRAN?
No, you have to make sure that 'fill' is not a factor. My guess is
that the simplest way to do
On 7/30/07, Patrick Drechsler [EMAIL PROTECTED] wrote:
Deepayan Sarkar [EMAIL PROTECTED] writes:
On 7/30/07, Patrick Drechsler [EMAIL PROTECTED] wrote:
The Gmane interface seems to have some lag at the moment...
Deepayan Sarkar [EMAIL PROTECTED] writes:
On 7/28/07, Patrick Drechsler
On 7/30/07, Patrick Drechsler [EMAIL PROTECTED] wrote:
Hi,
what is the recommended way of adding a strip to a lattice plot?
See ?strip.default.
In the example below I would like to add the value of mean(y) to a new
strip.:
--8---cut here---start-8---
On 8/1/07, Jonathan Williams [EMAIL PROTECTED] wrote:
I thought one nice addition to a splom figure would be to have the
scatterplots in the upper triangle and a color-coordinated
correlation matrix on the bottom. So I tried my hand at customizing
panel.pairs(), and was rebuffed. Many times.
On 7/31/07, Uwe Ligges [EMAIL PROTECTED] wrote:
Stephen Tucker wrote:
Dear List,
Sorry, this is very simple but I can't seem to find any information
regarding
line widths of plotting symbols in the lattice package.
For instance, in traditional graphics:
plot(1:10,lwd=3)
On 7/30/07, Jenny Barnes [EMAIL PROTECTED] wrote:
Dear Deepayan
Thank you for your response - it has proved very very helpful, I can't thank
you
enough!
I have another question for you if you have time to reply. I know you have
been
asked about the colour of the polygon outline before
On 7/28/07, Patrick Drechsler [EMAIL PROTECTED] wrote:
Hi,
is there a grayscale setting for lattice plots?
I like the default color settings. I also like the settings that are
available for setting black and white with something like this:
--8---cut
On 7/30/07, Patrick Drechsler [EMAIL PROTECTED] wrote:
The Gmane interface seems to have some lag at the moment...
Deepayan Sarkar [EMAIL PROTECTED] writes:
On 7/28/07, Patrick Drechsler [EMAIL PROTECTED] wrote:
is there a grayscale setting for lattice plots?
I like the default color
On 7/30/07, Alex Brown [EMAIL PROTECTED] wrote:
When at, label chains contain duplicate at values, axis ticks are
dropped. I believe this is handled incorrectly for Date ats in
lattice 0.15-4 when compared to how it is handled for numeric, or for
dates in base plot. This can result in
On 7/25/07, Kevin Wright [EMAIL PROTECTED] wrote:
When I create a dotplot in lattice, I frequently observe overplotting
of the labels along the vertical axis. On my screen, this illustrates
overplotting of the letters:
windows()
reps=6
dat=data.frame(let=rep(letters,each=reps),
On 7/24/07, Jenny Barnes [EMAIL PROTECTED] wrote:
Dear R-Help community,
I am trying to overlay a single contour line over a correlation plot using
levelplot in the lattice package. These are the two arrays:
1) a correlation plot over Africa - so each grid square is a different colour
On 7/18/07, Alan S Barnett [EMAIL PROTECTED] wrote:
I want to generate a lattice plot of a multiple linear regression. I'm
using the code:
xyplot(y ~ x1 + x2 | status, data=datam,
xlab=Peak separation,ylab=G/W,main=G/W vs Fuzzy peak
separation: Threshold=1.8,
On 7/18/07, Tanja Srebotnjak [EMAIL PROTECTED] wrote:
Hello R users:
I would like to produce a world map with countries colored according to
whether
they fall into one of 7 eco-climatic zones. For simplicity, each country is
allocated to exactly 1 eco-climatic zone. For this purpose I have
On 7/17/07, Osman Al-Radi [EMAIL PROTECTED] wrote:
Dear R-help subscribers,
I use xyplot to plot longitudinal data as follows:
score-runif(100,-4,5)
group-sample(1:4,100,rep=T)
subject-rep(1:25,4)
age-rep(runif(4,1,40),25)
df-data.frame(score,group,age,subject)
xyplot(score~age|group,
On 7/15/07, Daniel Malter [EMAIL PROTECTED] wrote:
Hi folks,
I am new to the list and relatively new to R. I am trying to unstack data
arraywise and could not find a convenient solution yet. I tried to find a
solution for the problem on help archives. I also tried to use the reshape
command
On 7/13/07, gallon li [EMAIL PROTECTED] wrote:
when producing boxplot from bwplot, I have five groups: Nitrogen, Duration,
Pressure, A, Z. I wish the graphical display is according to the original
order. But the R-function bwplot seems to automatically adjust the groups
according to the
at a time.
-Deepayan
--- Deepayan Sarkar [EMAIL PROTECTED] wrote:
On 7/11/07, hadley wickham [EMAIL PROTECTED] wrote:
A question/comment: I have usually found that the subscripts argument
is
what I need when passing *external* information into the panel
function, for
example
On 7/13/07, Richard M. Heiberger [EMAIL PROTECTED] wrote:
You can control the panel sequence with subscripting and transpose.
Here are several examples. I think tmp.tr3 is the one you asked for.
library(lattice)
tmp - data.frame(x=rnorm(24), y=rnorm(24), a=rep(letters[1:6],4),
On 7/13/07, suman Duvvuru [EMAIL PROTECTED] wrote:
Hello All,
I wanted to do many plots (in my case, wanted to get 6 histograms) on the
same figure. Is there a method in R that analogous to 'subplot' in MATLAB?
Here are a few possibilities:
data(singer, package = lattice)
## using
On 7/11/07, Jonathan Williams [EMAIL PROTECTED] wrote:
Hi folks,
I'm having some trouble understanding the intricacies of panel
functions. I wish to create three side-by-side graphs, each with
different data-- so far, so good: I rbind() the data, add a column of
subscripts as a conditioning
On 7/11/07, Bert Gunter [EMAIL PROTECTED] wrote:
Deepayan et. al.:
A question/comment: I have usually found that the subscripts argument is
what I need when passing *external* information into the panel function, for
example, when I wish to add results from a fit done external to the trellis
On 7/11/07, Jonathan Williams [EMAIL PROTECTED] wrote:
Deepayan,
Thanks for the clarification. The rectangles are completely external
to the panel data, and correspond to 90% confidence intervals built
from training data, to be overlaid on these graphs of the test data.
Right. So if you
On 7/11/07, hadley wickham [EMAIL PROTECTED] wrote:
A question/comment: I have usually found that the subscripts argument is
what I need when passing *external* information into the panel function, for
example, when I wish to add results from a fit done external to the trellis
call.
On 7/11/07, Stephen Tucker [EMAIL PROTECTED] wrote:
In the Trellis approach, another way (I like) to deal with multiple pieces of
external data sources is to 'attach' them to panel functions through lexical
closures. For instance...
rectInfo -
list(matrix(runif(4), 2, 2),
On 7/10/07, Sundar Dorai-Raj [EMAIL PROTECTED] wrote:
Michael Hoffman said the following on 7/10/2007 7:06 AM:
barchart(Titanic, stack=F) produces a very nice horizontal barchart.
Each panel has four groups of two bars.
barchart(Titanic, stack=F, horizontal=F) doesn't produce the
On 7/10/07, Hil Lyons [EMAIL PROTECTED] wrote:
Hello all --
I would like to thicken the borders between panels -- or more generally,
all borders -- in a plot generated using lattice (specifically,
levelplot). Something similar perhaps to box() function in graphics.
I haven't been successful
On 7/8/07, Paul Matthias Diderichsen
[EMAIL PROTECTED] wrote:
Hi Deepayan,
Deepayan Sarkar [EMAIL PROTECTED] schrieb am 06.07.2007
02:05:02:
On 7/5/07, Paul Matthias Diderichsen
[EMAIL PROTECTED] wrote:
library(lattice)
xyplot(speed~dist|speed, data=cars, layout=c(3,3
On 7/7/07, Sébastien [EMAIL PROTECTED] wrote:
Dear R users,
Here is a couple a quick questions, for which I was unable to not find
any answer in the list archives and in the help:
[...]
2- When a log scale is called in a graph, the label takes a format like
10^n.
That's true for lattice,
On 7/6/07, Leeds, Mark (IED) [EMAIL PROTECTED] wrote:
This has ABSOLUTELY nothing to do with R but I was hoping that someone
might know because there are obviously a lot of very bright people on
this list.
Suppose I had a time series of data and at each point in time t, I was
calculating x
On 7/6/07, Anthony Pezzola [EMAIL PROTECTED] wrote:
How can I change the tick mark values in lattice, specifically wireframe?
I have a 11*46 matrix of values that I am plotting using wireframe.
Unfortunely, the values range from 0.1-1.1 and 0.5-5. Using the code
below the tick marks have are
On 7/5/07, jim holtman [EMAIL PROTECTED] wrote:
You are getting two very different results in what you are comparing.
system.time(lapply(1:10^4, mean))
user system elapsed
1.310.001.31
is returning a list with 10,000 values in it. It is taking time to allocate
the space and
On 7/5/07, Mark Lyman [EMAIL PROTECTED] wrote:
I would like to add points to a wireframe but with a conditioning variable. I
found a solution for this without a conditioning variable here,
http://finzi.psych.upenn.edu/R/Rhelp02a/archive/65321.html. Does anyone know
how to plot a wireframe
On 7/5/07, Paul Matthias Diderichsen
[EMAIL PROTECTED] wrote:
Dear S-users.
This should be an easy one: How do I change pages on an X11 graphics
device under linux?
I thought that the page-up/page-down keys were supposed to do the trick,
but the frame (window) seems to be kind of immune to
On 7/3/07, Héctor Villalobos [EMAIL PROTECTED] wrote:
Hi all,
I want to retrieve the stats from a 'bwplot' with one factor. I have read
the help for 'panel'
function and I'm aware of the option 'stats' which defaults to
'boxplot.stats' but I didn't
understand it well and therefore I am
On 7/4/07, Martin Morgan [EMAIL PROTECTED] wrote:
Michael,
A hash provides constant-time access, though the resulting perl-esque
data structures (a hash of lists, e.g.) are not convenient for other
manipulations
n_accts - 10^3
n_trans - 10^4
t - list()
t$amt - runif(n_trans)
t$acct
On 7/3/07, Michael Hoffman [EMAIL PROTECTED] wrote:
[EMAIL PROTECTED] wrote:
On 7/2/07, Michael Hoffman [EMAIL PROTECTED] wrote:
Consider this plot:
xyplot(mpg ~ disp | cyl, mtcars, strip=F, strip.left=T, layout=c(1, 3),
scales=list(relation=free),
On 7/1/07, Jim Lemon [EMAIL PROTECTED] wrote:
Christoph Krammer wrote:
Hello everybody,
Since my first message was caught by the spam filter, I just try to do it
again:
I want to use R to generate plots from categorial data. The data contains
results from OCR scans over images with
On 6/28/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
I would like to add a reference line to lattice graphs, with the reference
line
being different according to the factor level.
Example : Draw 3 dotplots for a,b and c factors, and then add an
horizontal line at y=10 for panel a, y=8 for
On 6/28/07, Alexandre Salvador [EMAIL PROTECTED] wrote:
Selon [EMAIL PROTECTED]:
On 6/28/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
I would like to add a reference line to lattice graphs, with the reference
line
being different according to the factor level.
Example : Draw 3
On 6/28/07, Jim Price [EMAIL PROTECTED] wrote:
Hi,
I have recently been playing with the grid package in an attempt to create
some pages containing multiple lattice plots on the same page. However, when
I specify a grid layout with different widths, such as:
pushViewport(viewport(layout =
On 6/27/07, Afshartous, David [EMAIL PROTECTED] wrote:
All,
Is there are a simple way to plot multiple xyplots on the same page
in the code below (it currently overwrites the first plot w/ the
second).
I searched the archives and saw a similar question but the answer didn't
seem to work.
On 6/27/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Hi,
I'm new to lattice. So please kindly be patient with me.
I'm trying to arrange groups of levelplots into 3 rows as follows:
Row1: Probabilities as functions of x and y, and conditioned on an event
factor vector factor(a,b,c)
On 6/27/07, D G Rossiter [EMAIL PROTECTED] wrote:
I have found a quite strange (to me) behaviour in Sweave. It only
occurs in the following situation:
1. define a variable in one chunk
2. use it within a subsequent figure-generating chunk
3. delete it at the end of that same chunk
Then the
On 6/27/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Sorry. My email editor from my ISP always screws up the text after sending
out. Below is my response to you (in plain text).
Thank you Deepayan. Let's do the following exercise to reproduce the problem
I'm facing. In the following code, I
On 6/22/07, Sébastien [EMAIL PROTECTED] wrote:
Hi Deepayan,
The following code creates a dummy dataset which has the same similar as
my usual datasets. I did not try to implement the changes proposed by
Hadley, hoping that a solution can be found using the original dataset.
# My
On 6/22/07, Michael Hoffman [EMAIL PROTECTED] wrote:
I am using R 2.4.0 and lattice to produce some xyplots conditioned on a
factor and a shingle. The shingle merely chops up the data along the
x-axis, so it is easy to identify which part of the shingle a panel is
in by looking at the x-axis
On 6/22/07, Spilak,Jacqueline [Edm] [EMAIL PROTECTED] wrote:
I am using barchart to make charts for some data with a lot more
functions and labels and such in the command.
barchart(Freq ~ factor(HH), data = dataset1, group= year)
So I have my data grouped by year and I get a legend at the
On 6/22/07, Michael Hoffman [EMAIL PROTECTED] wrote:
Deepayan Sarkar wrote:
On 6/22/07, Michael Hoffman [EMAIL PROTECTED] wrote:
I am using R 2.4.0 and lattice to produce some xyplots conditioned on a
factor and a shingle. The shingle merely chops up the data along the
x-axis, so
On 6/21/07, Sébastien [EMAIL PROTECTED] wrote:
Hi Hadley,
Hopefully, my dataset won't be too hard to changed. Can I modify the
aspect of each group using your code (symbols for observed and lines for
predicted)?
Sebastien
hadley wickham a écrit :
Hi Sebastian,
I think you need to
On 6/21/07, Sigbert Klinke [EMAIL PROTECTED] wrote:
Hi,
I've a dataset with discrete data and several groups and in one group I
have also missing values (NA). When I use table and barchart to
visualize the counts I never get a bar for NA in the barchart although
it appears in the result of
On 6/20/07, Dan Bolser [EMAIL PROTECTED] wrote:
Hi,
I believe this question has been asked before, but I cant find and don't
remember the answer.
The problem is simple, calling 'plot.data.frame(x)' gives a nice 'matrix of
scatterplots' for each pair of columns in x. for example;
x -
On 6/19/07, Juan Pablo Lewinger [EMAIL PROTECTED] wrote:
I've searched the archives and read the xyplot help but can't figure
out the 2 lattice questions below?
Consider:
library(lattice)
DF - data.frame(x=rnorm(20), y=rnorm(20), g1=rep(letters[1:2], 10),
On 6/18/07, Matthew Trunnell [EMAIL PROTECTED] wrote:
Aha! So to expand that from the original expression,
table(table(d$filename, d$email_addr))
0 1 2 3
253 20 8 9
I think that is exactly what I'm looking for. I knew it must be
simple!!! What does the 0 column represent?
On 6/19/07, RICHARD PITMAN [EMAIL PROTECTED] wrote:
I am using the following code:
library(lattice)
data-read.csv(data.csv)
attach(data)
fig-xyplot(S_t~month|event,
key= list(text=list(lab=c(Time to first CV
event - Data,
Survival post
On 6/18/07, Andy Bunn [EMAIL PROTECTED] wrote:
Hi all,
I realize this is asking a lot of lattice, but I want to add a second y
axis inside a xyplot and have y1 and y2 have different ranges. Given dat
below, I can add a second y axis by overlaying a new plot with
par(new=T) and label axis 4
On 6/15/07, Ted Harding [EMAIL PROTECTED] wrote:
Hi Folks,
This is off-topic R-wise, but it may be close to
the heart of many R-users, so I think it may be
the best place to ask!
Users of 'gv' (the front end to ghostscript) will
be aware of the little window which gives you the
x-y
On 6/15/07, Dirk Eddelbuettel [EMAIL PROTECTED] wrote:
Philipp Benner reported a Debian bug report against r-cran-rpart aka rpart.
In short, the issue has to do with how rpart evaluates a formula and
supporting arguments, in particular 'weights'.
A simple contrived example is
On 6/15/07, hadley wickham [EMAIL PROTECTED] wrote:
On 6/15/07, Deepayan Sarkar [EMAIL PROTECTED] wrote:
[...]
By 'name', I mean a symbol, such as 'Age' or 'myweight'. So
basically, everything is as you would expect if the name is visible in
data, but if not, the search starts
On 6/15/07, Philipp Benner [EMAIL PROTECTED] wrote:
Thanks for your explanation!
With this in mind, either of the following might do what you want:
badFunction - function(mydata, myformula) {
mydata$myweight - abs(rnorm(nrow(mydata)))
hyp -
rpart(myformula,
On 6/15/07, Benilton Carvalho [EMAIL PROTECTED] wrote:
Hi everyone,
it's been a while I've been trying to save a plot created via
lattice:::xyplot
if I have a file tst.R with the following code:
y - rnorm(100)
x - rnorm(100)
z - sample(letters[1:4], 100, rep=T)
library(lattice)
On 6/15/07, Benilton Carvalho [EMAIL PROTECTED] wrote:
So, if those statements are inside a function, I have to make my
function to have an 'echo' argument/functionality? eg.:
## begin test.R
test - function(n){
y - rnorm(n)
x - rnorm(n)
z - sample(letters[1:4], n, rep=T)
On 6/13/07, Alan S Barnett [EMAIL PROTECTED] wrote:
I'm using xyplot to generate a trellis plot with each panel containing a
scatterplot and a best fit line. Is it possible to write the slope of
the best fit line in each panel?
Sure. The only question is, where (inside the panel) do you want
On 6/10/07, R.H. Koning [EMAIL PROTECTED] wrote:
Hello, I have some problems in using chron, Hmisc, and lattice. First,
using both chron and Hmisc, I get an error message when describing data:
df$Date - chron(df$Date,format=c(d/m/y))
ll - latex(describe(df),file=..//text//df.tex)
Error in
On 6/12/07, Dieter Menne [EMAIL PROTECTED] wrote:
Dear Latticer,
I want to give individual colors to all elements in a simple stacked
barchart. I know why the example below does not work (and it is a excellent
default), but is there any workaround for this?
Dieter
# This only colors red
On 6/12/07, Alan S Barnett [EMAIL PROTECTED] wrote:
1) I have a data that includes some bad data. I want to make a
trellis plot where each panel contains
a) A scatter plot of the good data
b) A scatter plot of the bad data in a different color
c) A best fit line of all the data, and
d) A
On 6/11/07, John Kane [EMAIL PROTECTED] wrote:
--- [EMAIL PROTECTED] wrote:
On 6/9/07, John Kane [EMAIL PROTECTED] wrote:
Is it possible to use dotchart or dotplot and set
the
lines in such a way that they only extend from the
left y-axis to the data point?
Yes (sort of) in
1 - 100 of 852 matches
Mail list logo