search for: opt_plot2

Displaying 1 result from an estimated 1 matches for "opt_plot2".

2008 Aug 04
1
subset inside a lattice plot using panel.lines
...lours. A variable is present call 'row' created like this and checked to be OK: row <- seq( len=length( variable1 ) ) ...so I just want to plot the two subsets where row <= 387 and where row > 387. None of these work properly: plots both over each other in correct colours opt_plot2 <- function( var_string, c, units ) { print( xyplot( get(var_string) ~ variable1 | variable2, panel = function( x, y, ... ) { panel.xyplot( x, y, type ="n", ... ) panel.grid( h=-1, v=-1, lty=3, lwd=1, col="grey" ) panel.lines( x, y, col = "red", subset = row...