[R] curvedarrow (some graphics problem)
casperyc
casperyc at hotmail.co.uk
Wed Jun 24 06:53:13 CEST 2009
baptiste auguie-4 wrote:
>
> Hi,
>
> Grid offers several functions to help drawing such graphs,
>
> see Paul Murrell's "Can R Draw Graphs? " (useR! 2006)
>
> I came up with this, as a quick example,
>
> vp <- viewport(
> x = unit(0, "npc"),
> y = unit(0, "npc"),
> just = c("left", "bottom"),
> xscale = c(-1, 1) ,
> yscale = c(-1, 1))
>
> ........
>
>
Hi,
I tried to do the first part. However, it returned with "no such function
'viewport' " error.
Do I have to load some package first?
And this is a lot 'more' code than I expected since I am very new to R.
It amazes me that R can be so POWERFUL!
I will try make your code work and have a look at the page you pointed out.
Thank you for you help.
Chen
--
View this message in context: http://www.nabble.com/curvedarrow-%28some-graphics-problem%29-tp24158796p24178684.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list