Displaying 20 results from an estimated 9000 matches similar to: "Simple lattice graphics question"
2008 May 06
2
Lattice problems / cannot load lattice
Hi,
My problem is simple: since having updated the lattice package, I cannot
load lattice anymore. If I type in the command 'library(lattice)' the
loading fails with the following message:
--- cut here ---
Error in library.dynam(lib, package, package.lib) :
shared library 'lattice' not found
In addition: Warning messages:
1: In loadNamespace(package, c(which.lib.loc,
2003 Jan 15
2
[lattice] lines for stripplot (like dotplot) or jitter for dotplot?
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 option and I'm not having any
success with getting panel.grid(h=-1) with stripplot. Can anyone
show me how to make dotplot-like lines on a stripplot? Or
2006 Dec 05
1
Horizontal stripplot
I have a plot similar to the following
library(lattice)
stripplot(1:15, rep(1:3, each=5))
In order to save space for a presentation, I would like to have
horizontal strips instead of vertical. The argument 'horiz' turns the
arguments around, but not the plot. The documentation for 'stripplot'
('xyplot'), 'panel.stripplot' and the FAQ do not seem to provide
2009 Sep 26
1
Lattice, stripplot (xyplot), plotting data with median line, numeric x-axis
All,
On p.52 of Deepayan Sarkar's Lattice book there is a nice plot of showing
residuals with median lines superimposed or various groups:
library("lattice")
stripplot(sqrt(abs(residuals(lm(yield~variety+year+site)))) ~ site,
data = barley, groups = year, jitter.data = TRUE, type = c("p", "a"), fun =
median)
Suppose we wanted to make a similar plot for a
2005 Jun 28
3
Help with stripplot
For the following code is there a way to make the jitter all line up horizontally, instead of them being just randomly spread around a value. So for ex if there are multiple values at 63 for genotype wt then all the values should be plotted on the same y value of 63 but spaced apart by a certain factor or noise..
library(lattice);
dataFrame <- as.data.frame(t(structure(c(
64,'wt',
2006 Dec 16
1
Seeking advice on lattice package in R2.4.0 concerning stripplot
Dear all,
I am using the R 2.4.0 environment on Windows XP SP2
machine and trying to use the lattice package version
0.14-9 which you have kindly written to share with the
R community.
I have a question concerning the stripplot which I'd be very
grateful if you can kindly advise me on:
I used the dataset called trydata to plot a graph using
stripplot (dataset attached), and the scripts
2006 Jun 01
3
Key titles in Lattice
Hi,
I'm creating some lattice plots that have a key and I'd like to put a
label on the key. The problem is that the text label for the key
prevents the values of the group variables from being shown (see example
below). I don't think that this is a feature, but I might be abusing the
title arg for key.
I'm using R Version 2.3.0 (2006-04-24) on Windows XP and lattice V0.13-8
2004 Jun 09
2
Help with a Lattice plot that fails with an empty unique combination
While using Lattice I received the following error.
Error in if (xx != 0) xx/10 else z/10 : argument is of length zero
In addition: Warning messages:
1: is.na() applied to non-(list or vector) in: is.na(x)
2: is.na() applied to non-(list or vector) in: is.na(x)
3: no finite arguments to min; returning Inf
4: no finite arguments to max; returning -Inf
5: NaNs produced in: log(x, base)
Can anyone
2004 Jun 09
2
Help with a Lattice plot that fails with an empty unique combination
While using Lattice I received the following error.
Error in if (xx != 0) xx/10 else z/10 : argument is of length zero
In addition: Warning messages:
1: is.na() applied to non-(list or vector) in: is.na(x)
2: is.na() applied to non-(list or vector) in: is.na(x)
3: no finite arguments to min; returning Inf
4: no finite arguments to max; returning -Inf
5: NaNs produced in: log(x, base)
Can anyone
2005 Jun 30
1
FW: plot legend outside the grid
-----Original Message-----
From: Ghosh, Sandeep
Sent: Thursday, June 30, 2005 5:43 PM
To: 'Berton Gunter'
Subject: plot legend outside the grid
Thanks for the pointers... I managed to get everything to look and feel the way I want except for the legend to plot outside the grid... Thanks for the note on the par, but I'm not able to it to plot outside the plot grid..
dataFrame <-
2000 Sep 19
1
Graphing measured and fitted distributions
Hi All,
What I would like to do is the following:
a) fit a probability function to a measured data set. This would be user
specified, e.g., normal, lognormal, etc.
and then
b) take the probability function and plot it with the histogram of the
measured data set. This function would be displayed as a smooth curve. This
would involve "re-sizing" the probability function to match
2005 Oct 18
2
Lattice graphics strip labels for shingles
Dear all,
back in 2002 Martin Henry H. Stevens wrote
(https://stat.ethz.ch/pipermail/r-help/2002-May/019851.html)
> How do I control the text in strips? Specifically, I want to put in the
> ranges generated in shingle(x) where x is continuous.
with an answer from Deepyan Sarkar (see strip.new towards the end of this
message). I assume that the answer worked back then, but I've tried
2011 Jun 28
1
means and error bars on xyplot for binary data
Hi,
I have binary (0,1) data for a trait as my response variable, and
a dependent variable, genotype, with three classes (AA, AB, BB).
I would like to plot this data so that across the three genoytpes, even
though the points are all either 0 or 1, i want them to stack up or be seen
using 'jitter'. So far I have been able to do this using xyplot {lattice}
(code below) but could not get
2001 Dec 22
2
gam plots
Dear R users,
Using the library(mgcv) and running R under MacOSX, I have fitted a
generalised additive model with binomial errors in order to check the
linearity of two continuous variables ap2mm and diffdaysm in a glm:
> mymodel.gam <- gam(diedhos~ s(ap2mm) + Dweekm + s(diffdaysm) +
Dweekm:diffdaysm + ap2mm:Dweekm, binomial)
I would like postscript gam plots for the two smoothed
2010 Jun 17
2
Multiple plots in a single page and stripplot()
I want to make a 2x2 plot on a single page, using stripplot() and boxplot().
I tried the following two alternatives with mfrow() and layout(), but none
of them worked.
library(lattice)
par(mfrow=c(2,2))
boxplot(X1 ~ Y, data=tst1, horizontal=T, las=1)
boxplot(X2 ~ Y, data=tst1, horizontal=T, las=1)
stripplot(Y ~ X1, data=tst1)
stripplot(Y ~ X2, data=tst1)
par(mfrow=c(1,1))
nf <-
2010 Apr 28
1
bwplot - scattered
Hi,
I'm using the bwplot from the agsemisc package which has a scattered
attribute which can be set so that the single dots can bee seen better.
my problem is, that I am having so many dots that they still overlap.
I could increase the output of the diagram but thats not really my
intention.
has someone an idea on how to have a stronger jitter?
--
View this message in context:
2011 Jan 27
1
How to xyplot without borders
Hello I have the following data.frame and xyplot. I need this plot without
the borders. Does anybody know how to get this xyplot without borders o with
white borders?
Thank's in advance
Juan Hernández
my.label <- data.frame(quantil=rep(20,8),
my.factor=factor(c('FA','FB','FC','FD','FE','FG','FH','FI')))
library(lattice)
2011 Oct 21
1
lattice::xyplot/ggplot2: plotting weighted data frames with lmline and smooth
In the HistData package, I have a data frame, PearsonLee, containing
observations on heights of parent and child, in weighted form:
library(HistData)
> str(PearsonLee)
'data.frame': 746 obs. of 6 variables:
$ child : num 59.5 59.5 59.5 60.5 60.5 61.5 61.5 61.5 61.5 61.5 ...
$ parent : num 62.5 63.5 64.5 62.5 66.5 59.5 60.5 62.5 63.5 64.5 ...
$ frequency: num 0.5 0.5
2005 Dec 06
3
strange behavior of loess() & predict()
Dear altogether,
I tried local regression with the following data. These data are a part
of a bigger dataset for which loess is no problem.
However, the plot shows extreme values and by looking into the fits, it
reveals very extreme values (up to 20000 !) although the original data are
> summary(cbind(x,y))
x y
Min. :1.800 Min. :2.000
1st Qu.:2.550
2003 Sep 04
1
scatter.smooth error
Hello
When I run
scatter.smooth(jitter(weight), jitter(height2), span = .25, evaluation
= 50, pch = '.')
I get the type of graph I thought I would get, but also a warning.....
k-d tree limited by memory. ncmax= 528
I always get concerned when there are warnings I don't understand.
What's a k-d tree? Is this something to be concerned about?
Thanks
Peter
Peter L. Flom,