Displaying 1 result from an estimated 1 matches for "lines_to_be_drawn".
2006 Dec 28
2
lattice xyplot: plot multiple lines with different colors
...l lines are drawn in the same color.
What I would prefer, would be to first print a single line in an xyplot
and then add a new line, and so on (since I want to dynamically
determine the number of lines that need to be plotted). For example,
something like this would be nice:
for(i = 1:length(lines_to_be_drawn)) {
xyplot(lines_to_be_drawn[i] ~ x, my_data, panel = {some function
setting a different color});
// do some other functions like plotting legend, parameters
}
(although in this putative example, a new xyplot is drawn over the old
one every time).
anyone any idea to plot multiple lines w...