search for: combinelimits

Displaying 8 results from an estimated 8 matches for "combinelimits".

2012 Jun 25
1
combineLimits and Dates
I'm having some trouble using the latticeExtra 'combineLimits' function with a Date x-variable: require(lattice) set.seed(12345) dates <- seq(as.Date("2011-01-01"), as.Date("2011-12-31"), "days") dat <- data.frame(d = rep(dates, 4), g = factor(rep(rep(c(1,2), each = length(dates)), 2)),...
2011 Mar 01
1
Lattice: useOuterStrips and axes
Consider the following: library(lattice) library(latticeExtra) temp <- expand.grid( subject = factor(paste('Subject', 1:3)), var = factor(paste('Variable', 1:3)), time = 1:10 ) temp$resp <- rnorm(nrow(temp), 10 * as.numeric(temp$var), 1) ylimits <- by(temp$resp, temp$var, function(x) range(pretty(x))) useOuterStrips(xyplot( resp ~ time
2010 Oct 23
1
removing margin space between columns in lattice plots
Hi list, >From the xyplot() documentation I'm guessing this may not be possible, but is there a way to specify a scale definition something between relation="free" and relation="same" such that the scales are fixed across rows and column margins are removed for a M x N conditioning plot (sort of like ggplot2 plots)? I find that the margin spacing in between each panel
2012 Jun 25
0
"Tight" Axes in Prepanel Function
...1,2,1,2)) The top plot has extra whitespace at the top and bottom. Is there any way to eliminate this without having to specify 'ylim' directly in the call the 'xyplot'? (The reason I want to include this in the prepanel function is that I want to add conditioning and use the "combineLimits" function in the latticeExtra package.) Thanks. - Elliot [[alternative HTML version deleted]]
2011 Mar 26
1
bwplot [lattice]: how to get different y-axis scales for each row?
Dear expeRts, How can I get ... (1) different y-axis scales for each row (2) while having the same y-axis scales for different columns? I coulnd't manage to do this with relation="free" [which gives (1) but not (2)]. I also tried relation="sliced", but it did not give the same y-axis scales within each row (see the fourth row). Further, it "separates" the
2012 Oct 22
0
Lattice to ggplot2: Reference graphics across facets
...ct', 'trt', 'time'), measure.vars = c('Raw', 'Change from baseline'), value.name = 'resp') ecg$resp[ecg$variable == 'Change from baseline' & ecg$time %in% c('Screening', 'Pre-dose')] <- NA # Example lattice graphic print(combineLimits(bwplot( resp ~ time | trt * variable, groups = trt, data = ecg, subscripts = TRUE, panel = function(..., subscripts) { # Basic data manipulation this <- ecg[subscripts, ] placebos <- subset(ecg, variable == this$variable[1] &am...
2013 Sep 19
3
lattice: double y - problem changing axis color after doubleYScale
Hi, I have had some troubles using doubleYScale. No matter what I try, I cant manage to change the color of the y-axis in the end. I have to produce a black and white plot. There is also something I do not understand regarding fontfamilyj="serif" when using it in: strip=strip.custom() Maybe someone has a better idea for defining which line and dots belong to which y-axis when not using
2012 Apr 19
5
User defined panel functions in lattice
Hi I have a problem with passing line and symbol parameters to user defined panel functions I had a look at the archives and created a panel function on what was shown and on panel.loess. I could not to get panel.locfit to work for what I intend it for. There is another layer to work with before success as lp() is called from locfit. xx <- structure(list(Farm = c("A",