I have two questions;
Do you know how to take out axes in a levelplot? Me doesn't work axes =
FALSE
And I would like to fix the values range of colorkey or legend from my
rainbow col.regions, dou you know how can I fix this values independent
of values database?
Thanks and happy new year!
Please read the Posting Guide mentioned at the bottom of any message on this
list (and follow the recommendations there).
You may find the suggestions offered here useful:
http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example
On 2012-12-30 06:25, Janue Miret, Jofre wrote:
I have two questions;
Do you know how to take out axes in a levelplot? Me doesn't work axes =
FALSE
levelplot() is a lattice function, not base graphics; it has no 'axes'
argument. Read about the 'scales' argument in ?xyplot and use
I have the following data as input, from which I would like to make a lattice
levelplot:
-
x y level
1 m3134 m3134 1.000
2 m3134 m416B 0.4189057
3 m416B m3134 0.2696508
4 m3134 mA20 0.3322170
5 mA20 m3134 0.2454191
6 m3134mB 0.3176792
...
Of jonathan
Sent: Monday, December 27, 2010 7:00 PM
To: r-help@r-project.org
Subject: Re: [R] levelplot blocks size
Thanks for your help.
Might you be able to explain in a little more detail how to use those
functions to solve this specific problem?
I'm happy to put in the work myself
Look at the functions cut, findInterval, tapply, and aggregate.
Sent from my iPod
On Dec 26, 2010, at 4:34 PM, jonathan j...@than.biz wrote:
Thanks for your advice, but my data is not decimals, so I don't need to round
the values. Instead, what I need to really do is group the values into
Thanks for your help.
Might you be able to explain in a little more detail how to use those
functions to solve this specific problem?
I'm happy to put in the work myself and have looked up those functions but
am new to R and still a little unsure about how I would go about using those
functions
Thanks for your advice, but my data is not decimals, so I don't need to round
the values. Instead, what I need to really do is group the values into
larger blocks.
My data looks sort of like this:
xy z
00687
0164
0271
0355
0452
0551
Sorry to bump this up again, but I've been continuing to look for a solution
to this including a look into stats.bin but I still can't find any solution
to do this within R.
Any help would be much appreciated!
Thanks,
Jonathan
--
View this message in context:
On 19/12/2010 2:10 PM, jonathan wrote:
Sorry to bump this up again, but I've been continuing to look for a solution
to this including a look into stats.bin but I still can't find any solution
to do this within R.
See ?levelplot. The number of bins of x and y is equal to the number of
unique
Duncan,
Thanks for the help.
I'm new to R, so I'm not sure how to get R to round the values and group
them into larger blocks.
I have tried the following:
xlim=seq(0,2000,100),ylim=seq(0,2000,100)
just to see if it would work, but it doesn't...
Do you think you might be able to explain how
On 19/12/2010 2:46 PM, jonathan wrote:
Duncan,
Thanks for the help.
I'm new to R, so I'm not sure how to get R to round the values and group
them into larger blocks.
I have tried the following:
xlim=seq(0,2000,100),ylim=seq(0,2000,100)
just to see if it would work, but it doesn't...
Do
Hello list,
Is there a way to add contour lines to a levelplot at different
breakpoints than are used for the colors? For example:
library(lattice)
# colors good but too many contours
levelplot(volcano, at=94:195, contour=TRUE)
# I thought something like this might work
levelplot(volcano,
On Thu, Jun 10, 2010 at 9:30 PM, rchand...@nrc.umass.edu wrote:
Hello list,
Is there a way to add contour lines to a levelplot at different breakpoints
than are used for the colors? For example:
library(lattice)
# colors good but too many contours
levelplot(volcano, at=94:195,
Dear mailing list,
I am trying to find out, how do a levelplot without labels on the x- and y-axis.
The labels=FALSE does not work...can anyone help me?
m - matrix(1:25, ncol=5)
levelplot(m, labels=F)
Regards,
Benedikt
__
R-help@r-project.org
This would do
levelplot(m, xlab=, ylab=)
F
zac...@lmb.uni-muenchen.de wrote:
Dear mailing list,
I am trying to find out, how do a levelplot without labels on the x- and y-axis.
The labels=FALSE does not work...can anyone help me?
m - matrix(1:25, ncol=5)
levelplot(m, labels=F)
Regards,
On 2010-05-21 8:57, zac...@lmb.uni-muenchen.de wrote:
Dear mailing list,
I am trying to find out, how do a levelplot without labels on the x- and y-axis.
The labels=FALSE does not work...can anyone help me?
m- matrix(1:25, ncol=5)
levelplot(m, labels=F)
1. This is a function in the lattice
) 736-3122
From:
zac...@lmb.uni-muenchen.de
To:
r-help@r-project.org
Date:
05/21/2010 10:43 AM
Subject:
[R] Levelplot
Sent by:
r-help-boun...@r-project.org
Dear mailing list,
I am trying to find out, how do a levelplot without labels on the x- and
y-axis.
The labels=FALSE does not work...can
) 733-6092
Fax: (651) 736-3122
From:
zac...@lmb.uni-muenchen.de
To:
r-help@r-project.org
Date:
05/21/2010 10:43 AM
Subject:
[R] Levelplot
Sent by:
r-help-boun...@r-project.org
Dear mailing list,
I am trying to find out, how do a levelplot without labels on the x- and
y-axis.
The labels=FALSE
Hi, R Users
When I use the default package lattice, I found a problem about adjusting
the Figure Margin that can be changed by par(mai or mar) in traditional
plots.
So it's hard for me to add top and right axis.
Any suggestions will be appreciated.
--
Wenjun
[[alternative HTML version
On Mon, Sep 28, 2009 at 9:08 AM, Antje antje.niederl...@yahoo.de wrote:
I had a bit success with the following usage:
my.padding - list(layout.heights = list(
top.padding = 0,
main.key.padding = 0,
key.axis.padding = 0,
Hello,
I'm not very experienced with lattice and I was wondering whether I get
get some hints from you how to create a pure heatmap (using levelplot),
without any axis, title, legend, margin at all... I just want to see the
coloured squares, nothing else.
Any suggestions?
Antje
I had a bit success with the following usage:
my.padding - list(layout.heights = list(
top.padding = 0,
main.key.padding = 0,
key.axis.padding = 0,
axis.xlab.padding = 0,
I had a bit success with the following usage:
my.padding - list(layout.heights = list(
top.padding = 0,
main.key.padding = 0,
key.axis.padding = 0,
axis.xlab.padding = 0,
With levelplot I would like to combine fitted values and raw values in
one plot. The surface should be based on fitted values and on top of
those I would like distinguisable points based on the raw data with a
colorscheme the same as the surface.
# raw data
x1 = rep(1:10, times = 10)
x2 =
...@stat.math.ethz.ch
Subject: Re: [R] levelplot question
On Tue, May 5, 2009 at 8:58 AM, Greg Snow greg.s...@imail.org wrote:
The function that is doing the color assignments is level.colors in
the lattice package.
Looking at the code confirms that the number of colors should be 1
less than the length
Ph.D.
Statistical Data Center
Intermountain Healthcare
greg.s...@imail.org
801.408.8111
-Original Message-
From: Deepayan Sarkar [mailto:deepayan.sar...@gmail.com]
Sent: Wednesday, May 06, 2009 6:35 PM
To: Greg Snow
Cc: Antje; r-h...@stat.math.ethz.ch
Subject: Re: [R] levelplot
On Tue, May 5, 2009 at 12:00 AM, Antje niederlein-rs...@yahoo.de wrote:
Hi Greg and all the others,
thanks for your answer. The color-vector has the same length like the
at-vector but the recycling cannot be the reason, because only values
slightly above my threshold doe not appear blue.
I
On Tue, May 5, 2009 at 8:58 AM, Greg Snow greg.s...@imail.org wrote:
The function that is doing the color assignments is level.colors in the
lattice package.
Looking at the code confirms that the number of colors should be 1 less than
the length
of the at variable (the documentation implies
Hi Greg and all the others,
thanks for your answer. The color-vector has the same length like the at-vector
but the recycling cannot be the reason, because only values slightly above my
threshold doe not appear blue.
I cannot find a good explanation of which colors are assigned to which value
Antje niederlein-rstat at yahoo.de writes:
thanks for your answer. The color-vector has the same length like the
at-vector but the recycling cannot be the reason, because only values
slightly above my threshold doe not appear blue.
I cannot find a good explanation of which colors are
-Original Message-
From: Antje [mailto:niederlein-rs...@yahoo.de]
Sent: Tuesday, May 05, 2009 1:00 AM
To: Greg Snow; r-h...@stat.math.ethz.ch
Subject: Re: [R] levelplot question
Hi Greg and all the others,
thanks for your answer. The color-vector has the same length like the
at-vector
Hi there,
I have a question concerning the behaviour of the colouring with levelplot. (I
hope, I manage to explain)
If I give the parameters at and col.regions like this:
at - c(1,2,3,4,5,6)
col.regions - c(blue,blue,blue,yellow,yellow,yellow)
Which color would have the value 3.5?
I would
@Dieter:
You implicitly expect round().
Your question implies that you may also susceptible to the problem of
R FAQ 7.31, Why doesn't R think these numbers are equal?
No, I guess, you misunderstood my question. These vectors (at and col.regions)
are given to levelplot together with some
Antje niederlein-rstat at yahoo.de writes:
I have a question concerning the behaviour of the colouring with levelplot.
If I give the parameters at and col.regions like this:
at - c(1,2,3,4,5,6)
col.regions - c(blue,blue,blue,yellow,yellow,yellow)
Which color would have the value 3.5?
Hi there,
I'm looking for someone who can give me some hints how to make a nice
levelplot. As an example, I have the following code:
# create some example data
# --
xl - 4
yl - 10
my.data - sapply(1:xl, FUN = function(x) { rnorm( yl, mean = x) })
x_label
To reorder the y-labels, simply reorder the factor levels:
df - data.frame(x_label = factor(x_label),
y_label = factor(y_label, rev(y_label)),
values = as.vector(my.data))
Not sure about putting the strips at the bottom. A quick scan of
?xyplot and
Try using the alternating=FALSE option.
--
David Winsemius
On Feb 27, 2009, at 12:07 PM, Sundar Dorai-Raj wrote:
To reorder the y-labels, simply reorder the factor levels:
df - data.frame(x_label = factor(x_label),
y_label = factor(y_label, rev(y_label)),
Hi. I have built a levelplot with 3 variables, X, Y, and Z where X and Y are
the two axes and Z represents the intensity (i.e. Z~X*Y).
Now I want to adjust the size of the grid (like a mosaic plot) where the size
of each grid is weighted by a variable, W.
Just wonder how can I do that with
Hi Kitty,
You can scale the grid cells of a levelplot using the 'shrink'
argument; see ?panel.levelplot
As for your mosaic question, are you using the 'mosaicplot' function
in the graphics package, or 'mosaic' in the vcd package, or something
else? I suggest you provide a minimal example if you
On 9/24/08, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Hello!
I have data containing a large number of probabilities (about 60) of
nonzero coefficients to predict 10 different independent variables (in 10
different BMA models). i've arranged these probabilities in a matrix like
so:
(IV1)
Hello!
I have data containing a large number of probabilities (about 60) of nonzero
coefficients to predict 10 different independent variables (in 10 different
BMA models). i've arranged these probabilities in a matrix like so:
(IV1)(IV2)(IV3) ...
p(b0)p(b0)p(b0)
p(b1)
Dear all;
I have a data set with 3 groups and 2 response variables, say z1 and
z2, and I would like to create a single plot (using the levelplot
function) showing on the first row the leveplots for z1 for each group
and on the second row levelplots for z2 for the same groups. I tried
plot.trellis
On 6/23/08, Pedro Mardones [EMAIL PROTECTED] wrote:
Dear all;
I have a data set with 3 groups and 2 response variables, say z1 and
z2, and I would like to create a single plot (using the levelplot
function) showing on the first row the leveplots for z1 for each group
and on the second row
thanks for the replies, however z1 (range 300-800) and z2 (range 0-50)
are measured in different units and scales and the approach suggested
by Bert and Deepayan creates a single colorkey (0-800) and some of the
plots for z2 really don't show anything...is there any way to specify
separate
45 matches
Mail list logo