On 10/23/08, Plantky [EMAIL PROTECTED] wrote:
Hi all,
My data has some positive and negative values, and I want to plot a
barchart. The problem is that the y-axis zero is somewhere in the
middle of the plot, and the graph starts with a negative value. How
can I make the negative values
On Thu, Oct 23, 2008 at 11:20 AM, Porter,Phillip C [EMAIL PROTECTED] wrote:
Good Morning,
I am using xyplot to show two variables for a large number of subjects.
Currently I am using xyplot(y~x|as.factor(ID), layout=c(7,9)) to give me a
little plot of the x and y factors for each ID.
The
Sender: [EMAIL PROTECTED]
On-Behalf-Of: [EMAIL PROTECTED]
Subject: Re: [R] I have an xyplot, I want to keep the format, but only show x
or y
Message-Id: [EMAIL PROTECTED]
Recipient: [EMAIL PROTECTED]
This information is being sent at
On 10/17/08, Chibisi Chima-Okereke [EMAIL PROTECTED] wrote:
Dear all,
Does anyone know how to overlay a 3d line on a wireframe plot?
See
http://lmdvr.r-forge.r-project.org/figures/figures.html?chapter=13;figure=13_07;
I would also
like to be able to keep the legend that you get when
On 10/17/08, Sharma, Dhruv [EMAIL PROTECTED] wrote:
Hi,
When I do a conditional histogram of X by Y and my Y ranges 0-100,000 I
get the x axis bin labels in scientific notation.
0 to 2e+06 etc.
is there a way to view the histogram bins without scientific notation?
Look at the scipen
On 10/16/08, Paul Boutros [EMAIL PROTECTED] wrote:
Hello,
I have encountered some unexpected behaviour with levelplot that may simply
be a misunderstanding on my part.
If I create a levelplot from a matrix with named columns, some padding
space appears at the top and bottom of the
On 10/15/08, Dieter Menne [EMAIL PROTECTED] wrote:
Gabor Grothendieck ggrothendieck at gmail.com writes:
str(trellis.par.get())
Never thought of that. Really nice.
There's also
http://lmdvr.r-forge.r-project.org/figures/figures.html?chapter=07;figure=07_03
All of which doesn't really
On 10/13/08, Ferry [EMAIL PROTECTED] wrote:
Dear R users,
How to change lattice panel label/text from the automatically generated
label (based on the conditioning) to our own set of label?
for example:
someStuff - data.frame(area = rep(c(SOUTH, NORTH, EAST, WEST), each
= 25),
On 10/13/08, Michael Lawrence [EMAIL PROTECTED] wrote:
On Sun, Oct 12, 2008 at 4:50 PM, Dirk Eddelbuettel [EMAIL PROTECTED] wrote:
On 12 October 2008 at 12:53, cls59 wrote:
| On a related note... does anyone know good resources for binding a C++
| program to the R library?
RCpp,
On Mon, Oct 13, 2008 at 3:38 PM, erwann rogard [EMAIL PROTECTED] wrote:
hello,
i need help with:
data$f1-as.factor(data$f1)
data$f2-as.factor(data$f2)
s3-equal.count(data$s2,number=3)
densityplot(~y| f1 + f2 + s3,
data=mydata
)
this produces 3 plots, *successively*, one for each
On Wed, Oct 8, 2008 at 3:41 PM, Alex Karner [EMAIL PROTECTED] wrote:
R friends,
I'm running R 2.7.2 on Windows XP SP2.
I have some data that's amenable to smoothing, and some that's not. I'm
trying to plot smoothed lines for the former along with just points for the
latter in a single
On Wed, Oct 8, 2008 at 12:15 PM, Rolf Turner [EMAIL PROTECTED] wrote:
On 8/10/2008, at 5:16 PM, Deepayan Sarkar wrote:
On 10/7/08, Rolf Turner [EMAIL PROTECTED] wrote:
I am trying to do a histogram lattice plot and I would like the
histogram to be filled with a different colour in each
On Wed, Oct 8, 2008 at 1:56 PM, Michael Just [EMAIL PROTECTED] wrote:
Hello, this code below was from a helpful R-help user.
dat - read.csv(Resid_fix2.csv, sep=, , header=T)
dat11 - dat[1:413,]
# convert ambiguous columns to factors:
dat11$Pri_No - factor(dat11$Pri_No)
dat11$RecovUnit -
On Tue, Oct 7, 2008 at 8:54 AM, baptiste auguie [EMAIL PROTECTED] wrote:
Dear list,
I've been trying this for a few hours and I just don't understand how
lattice works with groups and subscripts.
Consider the following example,
xx - seq(1, 10, length=100)
x - rep(xx, 4)
y - c(cos(xx),
On 10/5/08, Saptarshi Guha [EMAIL PROTECTED] wrote:
Hello,
I have a shingle A and B. A has 5 levels and B has 4 levels.
Also, I have 8
levels of a factor C. I wish to xyplot( x ~ y | C *A *B,data=data),
I think this is how the lattice conditioning works:
If i'm not
On 10/4/08, Desany, Brian [EMAIL PROTECTED] wrote:
For a non-log-scaled y-axis, I was able to change the appearance of the
y tick labels in an xyplot by using a custom function for
yscale.components. However I couldn't get that approach to work for when
scales=list(y=list(log=TRUE)).
On 10/2/08, Michael Just [EMAIL PROTECTED] wrote:
Dieter and Thierry:
Per you suggestions I have tried:
ggplot2 from Thierry:
p - ggplot(dat, aes(x=bbContag, y=..density..)) + geom_histogram()
p + facet_grid(. ~ sc_recov %in% c(21,31,41))
But get the followinng error:
Error in
On 10/3/08, hadley wickham [EMAIL PROTECTED] wrote:
On Fri, Oct 3, 2008 at 8:04 AM, eugen pircalabelu
[EMAIL PROTECTED] wrote:
Hi List,
I have the following problem: I am using the multilevel package and
make.univ function for available in the package and then xyplot from lattice
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)
On Thu, Sep 25, 2008 at 7:33 AM, John Fox [EMAIL PROTECTED] wrote:
Dear list members,
I'd like to be able to restrict the number of pages in a lattice display to
one without having to specify explicity the number of rows and columns in
the display -- that is, having forced one page, I'd like
On Wed, Sep 24, 2008 at 10:15 AM, stephen sefick [EMAIL PROTECTED] wrote:
I would like to use the data below where the plots are close to what I
want. Instead of color I would like to use different symbols, and
have the symbols in the legend match the graphs. I am also going to
See
(...)
pn - packet.number()
if (pn == 1) panel.abline(lm(GPP~I(1/Iron), data=f))
else if (pn == 2) panel.abline(lm(GPP~I(1/TSS), data=f))
else panel.abline(lm(GPP~I(TIN.TP), data=f))
}
-Deepayan
On Wed, Sep 24, 2008 at 2:56 PM, Deepayan Sarkar
[EMAIL PROTECTED
On 9/23/08, Pascal A. Niklaus [EMAIL PROTECTED] wrote:
Hi all,
I am trying to produce some panels with dots in an X/Y plane where the
diameter of the dots indicates a Z value (like e.g. earthquake maps where dot
sizes indicate magnitudes and X/Y the location).
This works fine with
On Sun, Sep 21, 2008 at 2:11 AM, Hofert Marius [EMAIL PROTECTED] wrote:
Dear R-experts,
I have found a splom-modification online which is given below. This works
perfectly, but I would like to have a matrix of given correlation values to
be used in the lower triangular part (lower.panel) of
On 9/18/08, David Scott [EMAIL PROTECTED] wrote:
I have a data set concerning ferritin levels in blood. There are three
relevant columns for this question, ferritin (continuous), score (ordered,
from 0 to 8) and gender. There is a good linear relationship between
log(ferritin) and score for
On Thu, Sep 18, 2008 at 10:23 AM, Waichler, Scott R
[EMAIL PROTECTED] wrote:
Thank you very much, Deepayan. There is just one more feature I'd like
to get, the ability to add the contour lines. My revision to your code
below prints too many lines. What needs to be changed?
--Thanks,
Scott
On Thu, Sep 18, 2008 at 1:36 PM, Waichler, Scott R
[EMAIL PROTECTED] wrote:
Thank you very much, Deepayan. There is just one more feature I'd
like to get, the ability to add the contour lines. My revision to
your code below prints too many lines. What needs to be changed?
You need to
On 9/18/08, Saptarshi Guha [EMAIL PROTECTED] wrote:
Hello,
My plot has two curves on different scales. To create the scale on
the extreme right hand side of a panel
I followed the example in panel.axis (in this example, the tick marks
are at the same location and labels are the
On 9/15/08, Waichler, Scott R [EMAIL PROTECTED] wrote:
When I use panel.contourplot() with filled color regions, the coloring
follows the stair-step edge of the underlying grid instead the smooth
contour lines themselves. How can I get the latter behavior? I would
guess there is a much
.
-Deepayan
Regards,
David
Deepayan Sarkar wrote:
On 9/15/08, Waichler, Scott R [EMAIL PROTECTED] wrote:
When I use panel.contourplot() with filled color regions, the coloring
follows the stair-step edge of the underlying grid instead the smooth
contour lines themselves. How can I get
On Wed, Sep 17, 2008 at 1:25 PM, Deepayan Sarkar
[EMAIL PROTECTED] wrote:
On Wed, Sep 17, 2008 at 1:12 PM, David Carslaw
[EMAIL PROTECTED] wrote:
I think this is a very useful function that I imagine has wide appeal -
thanks. Using the code below produces the plot OK but when I try and
copy
On 9/13/08, June Kim [EMAIL PROTECTED] wrote:
Hello,
I have a multivariate data with a single Y variable and 9 X variables.
I tried drawing a parallel coordinates with the data set without a
problem, using lattice library. However, I want to do some brushing on
the graph. For example, I
On Tue, Sep 2, 2008 at 11:43 PM, Andreas Krause [EMAIL PROTECTED] wrote:
Deepayan,
that is exactly what I was hoping for. Thanks much!
Experimenting with it I noticed that updating two existing objects with plot
arguments seems to not work, at least not in this way:
gr1 -xyplot(rnorm(111)
On Tue, Sep 2, 2008 at 6:24 AM, Andreas Krause [EMAIL PROTECTED] wrote:
When I create a lattice/Trellis type graph, I typically write a function that
returns the graph, as in
do.graph - function(x, y, ...)
{
require(lattice)
return(xyplot(y~x, ...))
}
My question today is this:
On Tue, Sep 2, 2008 at 1:23 PM, Martin Brown [EMAIL PROTECTED] wrote:
Hi all,
I'm new to R and lattice and panel functions. I've produced a lattice
graph using xyplot. Now I would like to add various, and *different*,
annotations to each individual panel. I tried something like this,
On 9/2/08, Steven McKinney [EMAIL PROTECTED] wrote:
This is close, but maybe not optimal lattice coding.
I haven't yet figured out how to suppress the x axis
labeling.
bwplot(yield ~ 1|year, panel = function(x, y, ...){panel.bwplot(x, y, ...,
pch = |); panel.points(x, mean(y), ...,
On 9/1/08, Jason Pare [EMAIL PROTECTED] wrote:
Hello,
I am having trouble adding symbols to grid graphics. I am able to
create a lattice scatterplot using xyplot, which has a range from
-15:15 in both the X and Y directions. However, when I try to add
circles and text to this graph using
On Thu, Aug 28, 2008 at 3:07 AM, Giovanni Tarquinio
[EMAIL PROTECTED] wrote:
Hello,
I'm Giovanni from ROMA..
I can't find a solution for the error:
error using packet 1
the y field is not specified and it has not a default value
(this is my traslation from italian language)
The code is:
On Thu, Aug 28, 2008 at 1:07 PM, Aaron Mackey [EMAIL PROTECTED] wrote:
Witness this oddity (to me):
rainbow_hcl(10)[1]
[1] #E18E9E
d - attributes(hex2RGB(rainbow_hcl(10)))$coords[1,]
rgb(d[1], d[2], d[3])
[1] #C54D5F
What happened? FYI, this came up as I'm trying to reuse the RGB values
On Thu, Aug 28, 2008 at 1:21 PM, Dylan Beaudette
[EMAIL PROTECTED] wrote:
Hi,
Is there any way to suppress plotting of panels that don't actually contain
any information? I have tried using 'drop.unused.levels=TRUE', but there
doesn't seem to be any effect. Here is an example:
On Tue, Aug 26, 2008 at 6:56 PM, Alex Karner [EMAIL PROTECTED] wrote:
Thanks Deepayan, works like a charm.
A followup question though--I'd like to produce the same data on four
panels with the final two zoomed in, i.e. plotted with shorter x and
y axes. Since I can't access panel.number in
On Tue, Aug 26, 2008 at 2:26 PM, Alex Karner [EMAIL PROTECTED] wrote:
R Friends,
I'm running R2.7.1 on Windows XP.
I'm trying to get some lattice functionality which I have not seen
previously documented--I'd like to plot the exact same data in multiple
panels but changing the grouping
On Mon, Aug 25, 2008 at 1:51 PM, Mario [EMAIL PROTECTED] wrote:
No, no, no. I have solved the Monty Hall problem and the Girl's problem and
this is quite different. Imagine this, I get the envelope and I open it and
it has £A (A=10 or any other amount it doesn't matter), a third friend gets
On Mon, Aug 25, 2008 at 4:47 AM, baptiste auguie [EMAIL PROTECTED] wrote:
Dear all,
I'm routinely using lattice and ggplot2, I wish to create a lattice theme
that looks not too dissimilar to ggplot's defaults so I can include both
graphs in a document with a consistent look.
To illustrate
On Fri, Aug 22, 2008 at 11:28 AM, Todd Hatfield [EMAIL PROTECTED] wrote:
I would like to control the inner margins of a lattice graph. The graph is
a single superposed panel, but there is too much white space around the data
for my liking. I've played around with some of the layout options,
On Sun, Aug 17, 2008 at 2:36 AM, Dieter Menne
[EMAIL PROTECTED] wrote:
Michael Braun braunm at MIT.EDU writes:
Dieter:
Thank you for your response. As you requested, I created a self-
running example, pasted below. It may be a little wordier than I
would like, but it runs.
.. Details
On Fri, Aug 8, 2008 at 2:38 PM, Rainer Hurling [EMAIL PROTECTED] wrote:
Dear community,
I am looking for a possibility to draw 'regression lines' instead of
'smooth' lines in grouped xyplots. The following code should give you a
small example of the data structure.
library(lattice)
On Thu, Aug 7, 2008 at 11:54 AM, baptiste auguie [EMAIL PROTECTED] wrote:
Hi list,
This is a very basic question about lattice: I wish to add some vertical
lines in each panel of a xyplot as demonstrated in this example:
library(lattice)
xx - seq(1, 10, length=100)
x - rep(xx, 4)
y -
On Thu, Aug 7, 2008 at 7:55 AM, Gavin Simpson [EMAIL PROTECTED] wrote:
Dear List,
I am writing a custom panel function and xyplot method to plot the
results of a procrustes analysis from the vegan package.
I am having trouble getting the call to panel.arrows to work as I wish
when
On 8/5/08, Henning Wildhagen [EMAIL PROTECTED] wrote:
Dear Deepayan,
thanks for the hint with the wrapper in latticeExtra, it is very convenient
and the plot looks fine. Just from intuition i think that it would look even
nicer if the strips at the left side appear at the right site of the
On 8/5/08, Chuck Cleland [EMAIL PROTECTED] wrote:
On 8/5/2008 8:37 AM, Chosid, David (FWE) wrote:
I'm trying to use fine axis controls in lattice for each panel.
Specifically, within each panel, I want to set the limits for x and y
equal to each other since it is paired data (using the max
On Tue, Aug 5, 2008 at 11:15 AM, John Poulsen [EMAIL PROTECTED] wrote:
Hello,
I apologize in advance as this example seems really elementary. Below I
have created a simple scatterplot with lines. I would like to label each
line with the name of the village, instead of using a legend. Can
On Tue, Aug 5, 2008 at 1:53 AM, Karin Lagesen [EMAIL PROTECTED] wrote:
I have a problem regarding the colors assigned to the lines in the key
to an xy plot. I specify the plot like this:
xyplot(numbers~sqrt(breaks)|moltype+disttype, groups = type, data = alldata,
layout = c(3,2), type
On Mon, Aug 4, 2008 at 3:36 AM, Gabor Grothendieck
[EMAIL PROTECTED] wrote:
Checkout this one:
http://finzi.psych.upenn.edu/R/Rhelp02a/archive/82452.html
And there's a wrapper for this in the latticeExtra package:
library(latticeExtra)
useOuterStrips(xyplot(data=df,
On Mon, Aug 4, 2008 at 8:44 AM, Mark Difford [EMAIL PROTECTED] wrote:
Hi Michael,
Pulling my hair out here trying to get something very simple to work. ...
I can't quite see what you are trying to do [and I am not sure that you
clearly state it], but you could make things easier and simpler
On Mon, Aug 4, 2008 at 1:39 PM, John Smith [EMAIL PROTECTED] wrote:
I have another questions. How can I type specific names into strips of the
resulting plot?
For instance, in the resulting figure from the attached code, instead of
'umbrella(d)', I want have 'UMBRELLA' in the strip.
On Thu, Jul 31, 2008 at 1:30 PM, GOUACHE David
[EMAIL PROTECTED] wrote:
R-helpers,
I'm having difficulty with customizing strip names for a lattice graphic.
Here is an example using the iris data set :
xyplot(Sepal.Length+Sepal.Width~Petal.Length,groups=Species,data=iris)
## I'd like to
On Thu, Jul 31, 2008 at 12:54 PM, GOUACHE David
[EMAIL PROTECTED] wrote:
Hello R-helpers,
I would like to produce a boxplot for dates, using lattice.
Here is a dummy example :
dates-as.Date(32768:32895,origin=1900-01-01)
plouf-data.frame(days=dates,group=factor(rep(1:2,times=128/2)))
On Sun, Jul 27, 2008 at 1:41 AM, Oliver M. Haynold
[EMAIL PROTECTED] wrote:
On Sun, 27 Jul 2008 05:00:48 +, Oliver M. Haynold wrote:
I am using wireframe from the lattice package, with the shade option set
to TRUE. When I output to PDF or Postscript, a line gets drawn around
each polygon
On Wed, Jul 30, 2008 at 6:41 AM, G. Draisma [EMAIL PROTECTED] wrote:
L.S.,
With the code below,
on the Windows screen the line types in the key show
as solid and dashed as in the graph,
and in the pdf file they show
as solid in the key and solid and dashed in the graph.
I would not expect
On 7/21/08, John Smith [EMAIL PROTECTED] wrote:
Dear R Users:
I have a list function as:
Flat: y = 0
Linear: y = -(1.65/8)d
Logistic: y = 0.015 - 1.73/{1+exp[1.2(4-d)]}
Umbrella: y= -(1.65/3)d + (1.65/36)d^2
Emax: y = -1.81d/(0.79+d)
Sigmoid Emax: y = -1.70d^5/(4^5+d^5)
And
PM, Deepayan Sarkar [EMAIL PROTECTED]
wrote:
On 7/21/08, John Smith [EMAIL PROTECTED] wrote:
Dear R Users:
I have a list function as:
Flat: y = 0
Linear: y = -(1.65/8)d
Logistic: y = 0.015 - 1.73/{1+exp[1.2(4-d)]}
Umbrella: y= -(1.65/3)d + (1.65/36)d^2
On 7/20/08, Bryan Hanson [EMAIL PROTECTED] wrote:
Hi All...
I can¹t seem to find an answer to this in the help pages, archives, or
Deepayan¹s Lattice Book.
I want to do a Lattice plot, and then update it, possibly more than once,
depending upon some logical options. Code below; it
On 7/16/08, Henning Wildhagen [EMAIL PROTECTED] wrote:
Dear R users,
i am using the following code to produce barcharts with lattice:
Compound-c(Glutamine, Arginine, Glutamate, Glycine, Serine,
Glucose, Fructose, Raffinose,
Glycerol, Galacglycerol, Threitol, Galactinol, Galactitol)
On 7/10/08, Mike Lawrence [EMAIL PROTECTED] wrote:
As I understand it, Duncan MacKay's solution involves simply pasting the
factors together, as in:
|_AX_|_AY_|_BX_|_BY_|
Which isn't quite as aesthetically pleasing as what I I'm looking for:
|___A___|___B___|
|_X_|_Y_|_X_|_Y_|
Any
On 7/9/08, David Afshartous [EMAIL PROTECTED] wrote:
On 7/9/08 1:07 PM, Deepayan Sarkar [EMAIL PROTECTED] wrote:
On 7/9/08, David Afshartous [EMAIL PROTECTED] wrote:
All,
I'm plotting points and lines for various groups.
I'd like subsequent plots done on subsets
On 7/3/08, Vitalie Spinu [EMAIL PROTECTED] wrote:
Dear UseRs!
I am really amazed by lattice capabilities but one thing is really beyond
my understanding.
I would like to have conditional plots with points inside each panel
colored by groups gr1 and pched by gr2:
On 7/2/08, Karin Lagesen [EMAIL PROTECTED] wrote:
I have a data matrix like this:
data[1:10,]
aaname grp cluster count
1 Ala All Singleton 432
2 Arg All Singleton 1239
3 Asn All Singleton 396
4 Asp All Singleton 152
5 Cys All Singleton 206
6
On 7/2/08, David Afshartous [EMAIL PROTECTED] wrote:
All,
I can't seem to get auto.key to work properly in an xyplot that is employing
panel.text. Specifically, I often change the default grouping colors then
use auto.key accordingly, but for some reason the same functionality isn't
On 7/1/08, Sam Albers [EMAIL PROTECTED] wrote:
I have constructed a Trellis style xyplot.
lengthf - factor(length)
xyplot(SLI$velocity ~ SLI$width | SLI$lengthf, layout = c(2,7), xlab =
Width (cm), ylab = Velocity (m/s^2), col = black)
As an aside, the recommended incantation is
On 6/30/08, Troy S [EMAIL PROTECTED] wrote:
r-friends--
I am trying to make a lattice plot with a single label at 0.05. A reference
line at y=0.05 as well... This is what I have so far. The label reads 0.0
and there is a grid instead of a single reference line. Can someone help
On 6/26/08, David Afshartous [EMAIL PROTECTED] wrote:
All,
I have data across 5 time points that I am graphing via xyplot, along with
error bars. For one of the variables I have missing data for two of the
time points. The code below is okay but I can't seem to get the lines to
On 6/25/08, Franz Mueter [EMAIL PROTECTED] wrote:
As for your first problem, try:
xyplot(numbers~breaks|moltype, groups = type, data = alldata, type = l)
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Karin Lagesen
Sent: Wednesday, June 25,
On 6/24/08, Bryan Hanson [EMAIL PROTECTED] wrote:
If anyone remains interested, the solution in base graphics is to modify
stripchart.default, the last couple of lines where the coloring of points
defaults in a way that depends on groups. In my example, the groups are
being handled
On 6/22/08, Bryan Hanson [EMAIL PROTECTED] wrote:
Thanks Gabor, I'm getting closer.
Is there a way to spread out resp values vertically for a given value of
index? In base graphics, stripchart does this with method = stack. But
in lattice, stack = TRUE does something rather different,
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
On 6/23/08, Gabor Grothendieck [EMAIL PROTECTED] wrote:
Set the various plotting parameters in par.settings= in which
case both the legend and the plot itself will be taken from there.
See for example:
http://finzi.psych.upenn.edu/R/Rhelp02a/archive/90432.html
where superpose.line
On 6/20/08, Henning Wildhagen [EMAIL PROTECTED] wrote:
Hello list,
i am trying to plot a continous variable y against a date variable, both
in one dataframe named df, using a code like this
library(lattice)
plot1-xyplot(y~date, data=df, type=b)
date is of class Date, of course,
On 6/18/08, Jim Price [EMAIL PROTECTED] wrote:
I've recently been playing with strip functions for a data presentation I'd
like to use, and have a couple questions. I've cannibalised the
useOuterStrips function from latticeExtra to give me the following sample
code:
library(lattice)
On 5/30/08, Karl Ove Hufthammer [EMAIL PROTECTED] wrote:
Dear R-help.
When plotting 3D wireframe plots with the lattice package, there is often
a lot of space between the actual plot (i.e., cube) and panel borders. For
a single wireframe, this is not a problem, but when plotting multiple
On 5/29/08, Wen Huang [EMAIL PROTECTED] wrote:
Hello,
I have been trying to make a graph that have error bars and text at
specific position.
I used the following code from the help file of xYplot(Hmisc) as an example
except I add a myPanel function, which is just supposed to add letters
On 5/28/08, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Hi,
I'm trying to produce a plot of an image of a Matrix, but I don't get
other colors than the default grey scale:
image(Matrix(topo.matrix.2),col.regions=topo.colors(100),colorkey=FALSE)
this still is plotted in grey.
Is there
On 5/27/08, Charilaos Skiadas [EMAIL PROTECTED] wrote:
On May 27, 2008, at 3:10 AM, Hofert Marius wrote:
Hi,
Consider the following cloud()-plot consisting of two lines:
library(lattice)
mydata=data.frame(x=rep(1:4,2),y=rep(1:2,each=4),z=c(1,2,3,4,4,3,2,1))
On 5/23/08, hobie perry [EMAIL PROTECTED] wrote:
Good afternoon.
The basic plot function can automatically generate log scales as follows:
plot(calcium ~ soil_ph, log=y)
Here is my basic model in xyplot...
xyplot(calcium+magnesium ~ soil_ph|depth*region)
I would like the
On 5/22/08, Sarah Kinnings [EMAIL PROTECTED] wrote:
Hi,
I have a table with three columns of data, let's call these a, b and c. I
have produced a scatter plot of a against b, but I would like to colour the
points according to their corresponding c values. c takes the value of
either 0,1,2,3
On 5/21/08, Michael Kubovy [EMAIL PROTECTED] wrote:
Dear R-helpers,
(1) How do I add a 'top' label symmetric with the 'bottom' label' in:
axis.td -
function(side, ...)
{
ylim - current.panel.limits()$ylim
switch(side,
bottom = {
On 5/20/08, Joshua Hertlein [EMAIL PROTECTED] wrote:
Hello,
I am very interested in banking to 45 degrees as defined by William S.
Cleveland
in Visualizing Data. I like to do it in R as well as Excel, etc. With R I
have come
across the following method:
xyplot(x, y, aspect=xy)
On 5/20/08, John Gant [EMAIL PROTECTED] wrote:
Can someone help me with a misunderstanding I'm having with hist? I
expected, from the example below, that the number of bins would always be 10
and the length of the counts array the same. According to the help section
'breaks' can be a
On 5/20/08, Charilaos Skiadas [EMAIL PROTECTED] wrote:
Here is how I see it. Let me define a visual y-unit as the height of a
unit of data in the y-direction, and similarly for a visual x-unit.
Then the aspect ratio is the quotient of the visual y-unit over the visual
x-unit. So the aspect
On 5/16/08, Jim Price [EMAIL PROTECTED] wrote:
I have stumbled across something in the Lattice package that is vexing me.
Consider the code below:
__
library(lattice)
myData - expand.grid(sub = factor(1:16), time = 1:10)
On 5/15/08, RINNER Heinrich [EMAIL PROTECTED] wrote:
Thanks for your help!
I guess I could have thought for ages about this, and never would such a
solution have come to my mind ;-)
It works as far as the text in the strips is left-aligned; a remaining
drawback
is that printing of
On 5/14/08, Levi Waldron [EMAIL PROTECTED] wrote:
Here's a simple example:
x - 1:5
plot(x,x^2)
lines(x,x^2)
points(x,x,cex=2)
lines(x,x,lw=3)
legend(topleft,legend=c(y=x^2,y=x),pch=1,pt.cex=1:2,lw=c(1,3))
The thickness of the circles in the legend changes with lw. If you change
On 5/12/08, Andrewjohnclose [EMAIL PROTECTED] wrote:
I have tried without success to find a way including the square root symbol
in lattice strips as part of my conditioning labels. I have tried
supplementing by creating a list of vectors using the var.name function
coupled with the
On 5/11/08, E C [EMAIL PROTECTED] wrote:
Is there a way of positioning the color key in levelplot when the axes are on
a categorical (rather than numerical) scale? I've put some sample code below.
I need to add a secondary y axis to the right side of my plot but then the
labels interfere
On 5/9/08, Ola Caster [EMAIL PROTECTED] wrote:
Sorry for spamming the list...
I noticed that if you first produce a date histogram with the hist()
function, like this:
basic.histogram - hist(my.data$date, breaks = months, plot = FALSE)
and then try to transfer the breaks from that
On 5/6/08, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
I'm trying to set up a lattice plot with two y-axes for each panel. (Yes,
I know that multiple y-axes are generally a bad idea; the graph is for
someone else and they want it that way.) I've used a custom
yscale.component in xyplot to
On 5/5/08, cfinet [EMAIL PROTECTED] wrote:
Hi,
I have 2 questions about bwplot in R :
1) How to change the order of my different boxes in the graph ?
2) How to rename the names of the differents boxes ? because I know how to
do that with boxplot (using names) but I do not find the
On 5/5/08, John Poulsen [EMAIL PROTECTED] wrote:
Hello,
I am using xYplot to plot lines with confidence bands (see test example
below). I would like to add a single point with confidence bars to each
graph (coordinates of the points below: px, py, pxlow, etc...). I tried
playing with
On 5/2/08, Michael Kubovy [EMAIL PROTECTED] wrote:
I too have been studying the book and it is indeed outstanding.
For my purposes the only topic missing is the straightforward drawing of
error bars and bands, for which I've been using Hmisc::xYplot (where error
bands seem to be broken for R)
On 5/2/08, Ronaldo Reis Junior [EMAIL PROTECTED] wrote:
Hi,
I user barplot2 to make a plot bar with errors bars. In old times I needed to
use a sequence of segments commands to make this.
Now I try to make the same but using lattice. Is possible to use barplot2 in
barchart function?
501 - 600 of 707 matches
Mail list logo