Re: [R] vertical kites in KiteChart (plotrix)

2010-10-13 Thread elpape
Wow! Thanks! On 13 October 2010 13:23, mbedward [via R] < ml-node+2993501-2047744113-199...@n4.nabble.com > wrote: > Super ! An option for vertical plotting would be very nice. > > Michael > > On 13 October 2010 22:19, Jim Lemon <[hidden > email]

Re: [R] vertical kites in KiteChart (plotrix)

2010-10-13 Thread Michael Bedward
Super ! An option for vertical plotting would be very nice. Michael On 13 October 2010 22:19, Jim Lemon wrote: > On 10/13/2010 07:11 PM, elpape wrote: >> >> Dear everyone, >> >> I would like to create a kite chart in which I plot densities (width of >> the >> vertical kites) in relation to sedi

Re: [R] vertical kites in KiteChart (plotrix)

2010-10-13 Thread Jim Lemon
On 10/13/2010 07:11 PM, elpape wrote: Dear everyone, I would like to create a kite chart in which I plot densities (width of the vertical kites) in relation to sediment depth (on reversed y-axis) for 6 different locations (Distances from seep site, on x-axis on top of the plot). The dataset I w

Re: [R] vertical kites in KiteChart (plotrix)

2010-10-13 Thread elpape
Hello, I've attached the result I'v'e got by applying your code (thanks for this!), but I seem to have horizontal kites instead of vertical kites. I need to rotate the entire graph, so to speak.. I've tried using viewpoint (found it on some forum), but this only seems to work with lattice plots.

Re: [R] vertical kites in KiteChart (plotrix)

2010-10-13 Thread Michael Bedward
Oops, sorry, I left out a step in that last post After replace NAs with 0 in Xwide... # use distance col as row names rownames( Xwide ) <- Xwide[ , 1 ] Xwide <- Xwide[ , -1 ] kiteChart( Xwide ) On 13 October 2010 19:49, Michael Bedward wrote: > Hello Ellen, > > First up I think you can use re

Re: [R] vertical kites in KiteChart (plotrix)

2010-10-13 Thread Michael Bedward
Hello Ellen, First up I think you can use reshape to get your data into a form that kiteChart will work with... # assuming your matrix or data.frame is called X Xwide <- reshape(X, timevar="depth", idvar="distance", direction="wide") # replace NAs with 0 (don't think kiteChart likes NA) Xwide[ i

[R] vertical kites in KiteChart (plotrix)

2010-10-13 Thread elpape
Dear everyone, I would like to create a kite chart in which I plot densities (width of the vertical kites) in relation to sediment depth (on reversed y-axis) for 6 different locations (Distances from seep site, on x-axis on top of the plot). The dataset I would like to use is: Distance_from_se