Displaying 20 results from an estimated 10000 matches similar to: "lattice variable by page"
2004 Mar 04
2
lattice, different plotting symbols
Hi,
I am trying to plot different variables from a data.frame using lattice's
xyplot using code like that below. How do I specify a symbol and color
for the variable 'prob' and different one's for 'll.prob'?
Thanks, Matt
xyplot( prob + ll.prob ~ time.eff |stat.id + time.out ,data = OUT,
allow.multiple = TRUE,
layout = c(6,3), as.table = TRUE ,
2004 Jul 27
1
lattice.device in loop
Hi,
I am having problems creating a pdf file of a lattice graph. Things work
fine for a single image, but I am having trouble using the commands in a
loop. To illustrate by example
This works with both ps and pdf files.
dat = list(x= 1:10, y = 1:10)
trellis.device(postscript, file = "/d1/pocernic/test.ps")
xyplot(y~x, data = dat)
dev.off()
This does not. It produces a very
2003 Dec 19
2
generic/method consistency
Hi,
I realize the answer is very likely in the section Generic functions and
methods (or Adding new generics), but I'm not clear what to do with the
following. Running R CMD check, I get the following warnings for my
generic functions. Does this mean I need the argument
* checking generic/method consistency ... WARNING
leps:
function(x, ...)
leps.default:
function(x, pred, titl,
2002 Dec 09
2
netcdf
Hello,
I have been having difficulties opening netcdf files using the netcdf
library. I am able to successfully open the file and I can determine the
names and size. However, when I try to read it I receive an error.
Reading the documentation, I am wondering if this might be due to a
difference between netcdf version 2 and more recent netcdf format? I've
tried using different values for the
2005 Sep 22
2
Survey of ROC AUC / wilcoxon test functions
Hi,
I was lately debugging parts of my 'colAUC' function in caTools package, and
in a process looked into other packages for calculating Areas Under ROC
Curves (AUC). To my surprise I found at least 6 other functions:
* wilcox.test
* AUC from ROC package,
* performance from ROCR package,
* auROC from limma package,
* ROC from Epi package,
* roc.area from verification
2003 Jan 22
1
Convert numeric value to POSIXct
Hi,
How do I convert a numeric value indicating the time since 1970, back into
a POSIXct class object? I have tried format.POSIXct and as.POSIXct
without success.
For example
> ccc
[1] "1945-01-01 15:00:00 MDT"
> ddd<- as.numeric(ccc);
> ddd
[1] -788842800
> format.POSIXct(ddd)
Error in format.POSIXct(ddd) : wrong class
> as.POSIXct(ddd)
Error in
2004 Oct 04
0
verfication package announcement
The verification package has recently been posted to CRAN. This package
was initially developed by people in the Verification Group at the
National Center for Atmospheric Research to verfiy and study weather
models and forecasts. It has been written in general terms to be
applicable to other fields of study. Functions include
receiver operating characteristic curves
attribute diagrams
2004 Oct 04
0
verfication package announcement
The verification package has recently been posted to CRAN. This package
was initially developed by people in the Verification Group at the
National Center for Atmospheric Research to verfiy and study weather
models and forecasts. It has been written in general terms to be
applicable to other fields of study. Functions include
receiver operating characteristic curves
attribute diagrams
2003 Jun 06
1
layout problem
Hello,
I have a question about using the layout command within a function. I've
written function that uses layout to create a figure from 2 plots. This
works fine to create a figure. When I use par(mfrow = c(2,2)) to create multiple
plots, it seems that the layout command resets the mfrow parmeter.
Is there a way for me to avoid this problem?
For example
practice<- function() {
2006 Aug 29
2
lattice and several groups
Dear R-list,
I would like to use the lattice library to show several groups on
the same graph. Here's my example :
## the data
f1 <- factor(c("mod1","mod2","mod3"),levels=c("mod1","mod2","mod3"))
f1 <- rep(f1,3)
f2 <-
2012 Aug 22
1
Controlling line-join style in Lattice
R users,
I am creating a series of scatterplots with Lattice's xyplot(). Some of the plotting symbols are squares with thick borders. The corners of the squares are rounded by default; I would like them to be square. In base graphics this is easily done with par(ljoin = "mitre"), and in grid graphics with gpar(linejoin = "mitre"). Is there an analogous parameter in
2007 Jun 21
2
Overlaying lattice graphs (continued)
Dear R Users,
I recently posted an email on this list about the use of data.frame and
overlaying multiple plots. Deepayan kindly indicated to me the
panel.superposition command which worked perfectly in the context of the
example I gave.
I'd like to go a little bit further on this topic using a more complex
dataset structure (actually the one I want to work on).
>mydata
Plot
2020 Oct 27
3
R for-loop to add layer to lattice plot
Hello,
I am using e1071 to run support vector machine. I would like to plot
the data with lattice and specifically show the hyperplanes created by
the system.
I can store the hyperplane as a contour in an object, and I can plot
one object at a time. Since there will be thousands of elements to
plot, I can't manually add them one by one to the plot, so I tried to
loop into them, but only the
2007 Mar 29
2
error in lattice formattedTicksAndLabels.Date (PR#9590)
Full_Name: James Szinger
Version: 2.4.1
OS: linux and MacOS X
Submission from: (NULL) (128.165.24.206)
I'm trying to plot some data from the past 12 months and the lattice package is
not labeling the time axis correctly. It shows only two labels instead of the
expected 12. The base graphics get it right.
I think the problem is the commented-out line in formattedTicksAndLabels.Date in
2000 Mar 17
2
Windows Memory
I'm sure this question is answered in the help file, but likely I'm not reading it corrected.
Running windows version 1.00.0, loading a table (35K rows by 10 columns) from Excel using the read.table command I receive the following message.
Error: cons memory (350000 cells) exhausted
See "help(Memory)" on how to increase the number of cons cells.
>From reading the
2001 Feb 10
3
Scatterplot - symbols coded by factor
Hi - I would like to create a scatterplot with the symbols coded by a factor in each record. Is their a better way than what I have used below? I attempted to use the plot.factor, but cannot force it to make a scatterplot instead of boxplots. I have considerd making a function with a 'for' statement for each level of the factor. Is there a better way for when I am dealing with more
2020 Oct 28
0
R for-loop to add layer to lattice plot
On Tue, Oct 27, 2020 at 6:04 PM Luigi Marongiu <marongiu.luigi at gmail.com> wrote:
>
> Hello,
> I am using e1071 to run support vector machine. I would like to plot
> the data with lattice and specifically show the hyperplanes created by
> the system.
> I can store the hyperplane as a contour in an object, and I can plot
> one object at a time. Since there will be
2012 Mar 08
2
xyplot without external box
Dear list members,
Within a loop, I need to create an xyplot with only a legend, not even
with the default external box drawn by lattice.
I already managed to remove the axis labels and tick marks, but I
couldn't find in the documentation of xyplot how to remove the
external box.
I would really appreciate any help with this
------------- START -----------
library(lattice)
x<-1:100
2007 Jul 17
2
xyplot for longitudinal data
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, group=subject,
panel=function(...){
panel.loess(...,lwd=4)
panel.superpose(...)}
,data=df)
this produced a plot with four panels one for each
2007 Aug 01
1
Problem to remove loops in a routine
Dear R-users,
I have written the following code to generate some trellis plots. It
works perfectly fine except that it is quite slow when it is apply to my
typical datasets (over several thousands of lines). I believe the
problem comes from the loops I am using to subset my data.frame. I read
in the archives that the tapply function is often more efficient than a
loop in R. Unfortunately ,