[R] It This data viz possible in R?

Barry Rowlingson b.rowlingson at lancaster.ac.uk
Wed Apr 7 16:39:06 CEST 2010


On Wed, Apr 7, 2010 at 3:20 PM, baptiste auguie
<baptiste.auguie at googlemail.com> wrote:
> Hi,
>
> Barry suggested a way to place the text labels; I would like to point
> out the grid.curve() function that might help in connecting the labels
> with nice-looking curves. I don't know of a base graphics equivalent
> (xspline() might come close) so it might be best to opt for Grid.

 I'd just make circular arcs with sines and cosines.

 Of course the plot is a massive waste of space on a practical level.
Long names will squeeze the adjacency data into a smaller and smaller
area, making it harder to work out what is going on. I wouldn't want
to use this for anything else - but hey, that's what art is for.... :)

 Playing with this (before the Kolkata Knight Riders' innings just
started) and I hit a problem. You can't call strheight("X") to get the
text height without first doing plot.new, but you don't know how big
your plot is going to be until you know strheight("X"). I'm sure
there's a way round this, but... Chris Gayle is batting.

Barry



More information about the R-help mailing list