thanks you both for the reply.

yes, the second question is two-in-one, a bit confusing: I was thinking
about Matlab's hold
command, but also waiting for user input to proceed. So you have provided
the complete answer.

The first question though - yes, windows() will give you a different window
on w32 platform; On my Mac, quartz() will pop a new window. Does that mean
my R code won't be portable if I need two windows? I was hoping something
like figure() on matlab ... One way to get around the problem is check the
platform first, then run different commands, but that would make the user
code a bit cumbersome, does this make sense to you at all?

Best,

Oliver


On Fri, Feb 20, 2009 at 7:05 PM, David Winsemius <dwinsem...@comcast.net>wrote:

>
> On Feb 20, 2009, at 4:53 AM, Simon Pickett wrote:
>
>  Hi Oliver,
>>
>> 1) thats easy, if you want to display several graphs at once type
>> windows(), once for each new graph.
>>
>> 2) Not sure exactly what you mean here but you have complete control over
>> graphs in R. e.g. plot a blank graph then add axex using axis(), add points
>> using points(), etc. etc.
>>
>
> True, we to guess. My guess is that he wants:
> ask {gtools}
> R Documentation
> Display a prompt and collect the user's responseDescription
> Display a prompt and collect the user's response
>
> Usage
> ask(msg = "Press <RETURN> to continue: ")
> So one plot would be sent to a graphics device, then ask(), then after
> response, add a line or points or ... (but not a new plot() or dev.new()
> command)
>
> ?dev.cur
> ?abline
> ?points
> --
> David Winsemius
>
>
>>
>> Check out these pdfs http://cran.r-project.org/other-docs.htmlparticularly 
>> Emanuel Paradis's great intro to using R, very helpful for
>> plots.
>>
>> Hope this helps,
>>
>> Si.
>>
>>
>> ----- Original Message ----- From: "Oliver" <fwa...@gmail.com>
>> To: <r-help@r-project.org>
>> Sent: Friday, February 20, 2009 3:33 AM
>> Subject: [R] plotting questions
>>
>>
>>  hi,
>>>
>>> There are two types of plotting I miss dearly in Matlab, can anyone
>>> enlighten me how to do similar stuff in R?
>>>
>>> - multiple figures with individual windows (not multiple figures in
>>> same window)?
>>>
>>> - draw something, hold on the drawing, wait for a key action, then
>>> overlay on top?
>>>
>>> Not sure if this makes sense, just want to check if there are
>>> developed techniques for them.
>>>
>>> Thanks
>>>
>>> Oliver
>>>
>>> ______________________________________________
>>> R-help@r-project.org mailing list
>>> https://stat.ethz.ch/mailman/listinfo/r-help
>>> PLEASE do read the posting guide
>>> http://www.R-project.org/posting-guide.html
>>> and provide commented, minimal, self-contained, reproducible code.
>>>
>>>
>> ______________________________________________
>> R-help@r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide
>> http://www.R-project.org/posting-guide.html
>> and provide commented, minimal, self-contained, reproducible code.
>>
>
>

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to