Displaying 2 results from an estimated 2 matches for "createplot".
2010 May 13
1
ggplot2: qplot won't work
I have a script running in the StatET Eclipse environment that
executes the ggplot2 command qplot in a function:
# Creates the plot
createPlot <- function(){
print("Lets plot!")
qplot(1:10, letters[1:10])
}
When executing the qplot line directly, it works. When executing the
script it does not open a window and it it does not plot. Is there
something important I have forgotten? I know that the function is
called because I...
2008 Sep 19
1
Plot Accessibility
...specification, and graphs them all on the same plot.
I don't want to redraw the plot each time, and I don't want the code to have
any concept of a "first entry" instantiating the plot with plot() in place
of lines().
Ideally, I'd like something to the effect of:
plot <- createPlot(main = "Hello World", sub = "tiny, little world", xlim =
c(-3, 3), ylim = c(-3, 3))
plot <- addElement(plot, lines(col = 'BLUE', x = c(0, 1, 2, 3), y = c(3, 2,
1, 0)))
Hopefully this laid my problem out a little better.
Thanks in advance for any help you might be a...