Displaying 15 results from an estimated 15 matches for "sbigelow".
Did you mean:
bigelow
2010 Mar 15
1
Eliminate border in wireframe plot
How can I eliminate the border drawn by default around a wireframe plot? I've tried using border=NA and box=FALSE to no avail.
Scott Waichler
Pacific Northwest National Laboratory
scott.waichler at pnl.gov
2011 Mar 01
2
Does POSIXlt extract date components properly?
...ydate$day
[1] 19
But when I try to extract the month
> mydate$mon
[1] 3
it returns the wrong month. And mydate$year is off by about 2,000 years.
Am I doing something wrong?
Dr. Seth W. Bigelow
Biologist, USDA-FS Pacific Southwest Research Station
1731 Research Park Drive, Davis California
sbigelow@fs.fed.us / ph. 530 759 1718
[[alternative HTML version deleted]]
2009 Dec 29
4
subsetting by groups, with conditions
I have a data set similar to this:
P1id Veg1 Veg2 AreaPoly2 P2ID
1 p p 1 1
1 p p 1.5 2
2 p p 2 3
2 p h 3.5 4
For each group of "Poly1id" records, I wish to output (subset) the record
which has largest "AreaPoly2" value, but only if
2010 Mar 05
4
conditioning variable in panel.xyplot?
I wish to create a multipanel plot (map) from several datasets ("d" and
"q" in the example below). I can condition the main xyplot statement on
the "site" variable, but I don't know how to pass a conditioning variable
to panel.xyplot plot so that the x-y coordinates from dataset q are only
plotted at the appropriate site.
library(lattice)
d <-
2011 May 25
3
Accessing elements of a list
...th) # Make vector with list lengths
last_only <- mylist[[1:length(mylist)]][last] # Crash and burn trying to
make new vector with last items!
How do I do this last step?
Dr. Seth W. Bigelow
Biologist, USDA-FS Pacific Southwest Research Station
1731 Research Park Drive, Davis California
sbigelow@fs.fed.us / ph. 530 759 1718
[[alternative HTML version deleted]]
2010 Jun 22
2
Lattice legend
I have a moderately complex graph with three panels. There are data points
plotted, and fitted lines are added using a panel function, which includes
"with(alt.data[[which.packet()[1]]]" statements. It all graphs out
beautifully, but none of the usual tricks to get the proper legend to plot
are working, i.e., using auto.key, key, etc.
One message I keep getting is
Error in
2007 Dec 13
2
Overlaying trellis xyplot on contourplot
Friends: I wish to overlay data points on a contour graph. The following
example produces a nice contour plot, but I have not mastered the concept
of using panel functions to modify plots. Can someone show me how to
overlay the data points (given after contour plot statement) on the
contourplot?
--Seth
model <- function(a,b,c,X1,X2) # provide model
function for contour
2010 Sep 21
1
Doing operations by grouping variable
I'm writing an expression that requires searching a vector according to
group. As an example, I want to find the maximum value in each of 5
groups.
group=rep(1:5, each=5) # create grouping variable
variable=rnorm(25) # generate data
d <- data.frame(group,variable) # make data frame
2011 Sep 09
1
Adding groups to regression line panel function in Lattice
I wish to display a single-panel Lattice figure with grouped data and fitted regression lines. I don't seem to be able to get the
individual regression lines to display, e.g.;
d <- data.frame(q = rep(1:6, each=10), cc = rep(seq(10,100, 10),6)) # create data frame with group identifier 'q', independent variable cc
d$ba = d$q*0.1*d$cc + 5*rnorm(nrow(d))
2007 May 09
1
How to remove outer box from Wireframe plots?
I would like to remove the outermost box from my wireframe plots -- this is
the box that is automatically generated, and is not the inner cube that
frames the data. There was a thread on this 4 yrs ago but none of the fixes
work (e.g., grid.newpage(), grid.lines(gp = gpar(col = NA)) or
par.box=list(col=1),col=NA. These just make the data or the cube disappear.
Has anyone solved this issue?
2009 Sep 18
1
xyplot: Can I identify groups but not use them for regression?
I wish to identify groups representing different treatments, but to plot
them and do a regression using a continuous variable ("cover")
ignoring the groupings.
d$year <- NA
d$year <-c(rep(2007,12), rep(2008,12))
d$treatment <- c(rep("A",4),rep("B",4),rep("C",4), rep("A",4), rep("B",4),
rep("C",4))
d$cover <-
2008 Dec 03
1
how do I eliminate excess levels in lattice contourplot key / legend?
I'm working on a contourplot( ) graph, the subject of several previous
posts to this list. The contours express probabilities from 0 - 1, but the
key that is automatically generated by contourplot pads the probability
scale with values that are impossible (i.e, range goes from -0.2 to 1.2),
which will be confusing to those who view the plot. How can I get the
scale to just run from 0 - 1?
2012 Mar 23
1
Remove wireframe outer box but keep ticks
I would like to eliminate the outer box around a lattice wireframe graph, but the usual recommended solution, which is to assign a color of 'transparent' to the axis.line parameter,
eliminates ticks if the 'arrows=F' command is used, as shown in the following example:
test = data.frame(expand.grid(c(1:10), c(1:10)))
z = test[,1] + test[,2]
test = cbind(test, z)
names(test) =
2009 May 05
0
illegal levels in yaImpute() / AsciiGridImpute()
I'm using randomForest in yaImpute to create a yai-type object which
associates "L" with landscape features. Then I use the sp() package to
impute L to a landscape consisting of four ascii files) I keep getting the
message "NA's generated due to illegal level(s)" when I do the imputation.
It's probably because one of the landscape features ("as", for
2008 Nov 24
2
lattice contourplot background covers inward-facing ticks
I wish to have inward-pointing ticks on my contourplot graph, but the
colored background produced by the "region=TRUE" statement covers the
ticks up, is there any way around this? Sample code below. --Seth
library(lattice)
model <- function(a,b,c,d,e, f, X1,X2) # provide model function
for contour plot
{J <- a + (b*X1) + (c*X2) + (d*X1*X2) + e*(X1^2) + f*(X2^2)
pp