search for: kuijper

Displaying 5 results from an estimated 5 matches for "kuijper".

Did you mean: kiper
2008 Feb 05
2
dynamically add items to key of lattice xyplot
...ething like trellis.focus("legend"), but this only yields errors. Also, in the lattice documentation, the only separate key function I could find is draw.key(), no functions to add individual key items. anyone has more info on dynamically adding items to keys in xyplots? thanks, Bram Kuijper this is the code for my lattice xyplot plot: print(xyplot(current_data$FemDiploidUninf ~ current_data$generation, ylim=c(0,2000), scales=list(x=list(tick.number=4)), par.settings=list(plot.line=list(col='red')), type="l", key=list(text=list(c("blah","blah2"))...
2008 Jan 31
1
decrease amount of ticks on y axis in lattice levelplot
...s.default(...) Y$left$ticks$at <- pretty(1,n=10) Y$left$labels$at <- pretty(1,n=10) return(Y) } print(levelplot(my_matrix),cuts=100,yscale.components=yscale.components.myY) My full code can be found on pastebin: http://pastebin.com/m16b267f9 thanks in advance for any help on this, Bram Kuijper
2008 Jan 08
1
storing matrices in a list or vector and preserve dimensions
...st append() the matrices to a list() object, they automatically lose their dimensions, whereas I would like to preserve the dimensions of the matrices. Is there any function in R which allows me to store a _fully preserved_ object inside a list() or vector() structure? thanks in advance, Bram Kuijper PS: this is what I do: # two matrices, which are my objects to be put in the list my_matrix_object1 <- matrix(data=rep(1,times=9),nrow=3,ncol=3); my_matrix_object2 <- matrix(data=rep(0,times=9),nrow=3,ncol=3); my_list <- list() # note that I explicitly want to append the object to th...
2006 Dec 28
2
lattice xyplot: plot multiple lines with different colors
Hi everyone, I am using the lattice package to plot some simulation results, by using the function xyplot(). However, I cannot find a way to plot multiple lines within the same xyplot and to have each of the lines be drawn in a different color. This is what I am currently doing: xyplot(a + b + c ~ x, my_data, panel = panel.lines) but, of course, all lines are drawn in the same color. What
2007 Jan 11
0
levelplot not adjusting colors
Hi all, I try to make a levelplot from the Trellis graphics package of count data given a certain x and y variable. The problem is that I can adjust the colorkey colors, but the colors of the actual values in the plot will be unchanged if I change the colorkey. e.g. my_lvl_plot <- levelplot(my_z ~ my_x * my_y, colorkey = list(col=some_color_vector)) will result in a levelplot that