Dear experts, I would like to be able to interactively (if possible, with mouse and clik) edit point labels in graphs, particularly in multivariate graphs, such as the biplots you get after a correspondence analysis (with, for example, package ca), where labels tend to overlap. The graph aspect ratio is relevant (it needs to be mantained). And I'm working with Windows XP. In this kind of graphs points in the graph are identified with labels, generally long (see, for example: http://www.white-history.com/Greece_files/hlafreq.jpg), and sometimes -as in the example- it is good to group certain points within ellipses. Do you know if exists some package able to do this task? Thanks in advance, Hug
Hello On 2/3/10, trece por ciento <el13porciento at yahoo.com> wrote:> Dear experts, > I would like to be able to interactively (if possible, with mouse and clik) edit point labels in graphs, >Try playwith. Liviu> particularly in multivariate graphs, such as the biplots you get after a correspondence analysis (with, for example, package ca), where labels tend to overlap. The graph aspect ratio is relevant (it needs to be mantained). And I'm working with Windows XP. > In this kind of graphs points in the graph are identified with labels, generally long (see, for example: http://www.white-history.com/Greece_files/hlafreq.jpg), and sometimes -as in the example- it is good to group certain points within ellipses. > Do you know if exists some package able to do this task? > Thanks in advance, > Hug > > ______________________________________________ > R-help at 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. >-- Do you know how to read? http://www.alienetworks.com/srtest.cfm http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader Do you know how to write? http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail
Thanks, Liviu In a first look it seems OK. Two questions: 1. Playwith accept directly the plots created by the ca package, but it seems unable to identify the point labels For example: data(smoke) smoke ca(smoke) plot(ca(smoke)) playwith(plot(ca(smoke))) Then, if I try to identify a label playwith gives the message "Sorry, can not guess the data point coordinates. Please contact the maintainer with suggestions". If I ask to select the label from a table playwith sends the following message to RGui: "Error in data.frame(..., check.names = FALSE) : arguments imply differing number of rows: 2, 0" 2. Can playwith draw ellipses or any other figure around selected points? (For the first question it seems my fault, but I don't know how to fix it) Hug --- On Wed, 2/3/10, Liviu Andronic <landronimirc at gmail.com> wrote:> From: Liviu Andronic <landronimirc at gmail.com> > Subject: Re: [R] Interactively editing point labels in a graph > To: "trece por ciento" <el13porciento at yahoo.com> > Cc: r-help at r-project.org > Date: Wednesday, February 3, 2010, 3:49 AM > Hello > > On 2/3/10, trece por ciento <el13porciento at yahoo.com> > wrote: > > Dear experts, > >? I would like to be able to interactively (if > possible, with mouse and clik) edit point labels in graphs, > > > Try playwith. > Liviu > > > particularly in multivariate graphs, such as the > biplots you get after a correspondence analysis (with, for > example, package ca), where labels tend to overlap. The > graph aspect ratio is relevant (it needs to be mantained). > And I'm working with Windows XP. > >? In this kind of graphs points in the graph are > identified with labels, generally long (see, for example: http://www.white-history.com/Greece_files/hlafreq.jpg), > and sometimes -as in the example- it is good to group > certain points within ellipses. > >? Do you know if exists some package able to do > this task? > >? Thanks in advance, > >? Hug > > > >? ______________________________________________ > >? R-help at 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. > > > > > -- > Do you know how to read? > http://www.alienetworks.com/srtest.cfm > http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader > Do you know how to write? > http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail >
On Tue, 2010-02-02 at 23:57 -0800, trece por ciento wrote:> Dear experts, > I would like to be able to interactively (if possible, with mouse and > clik) edit point labels in graphs, particularly in multivariate > graphs, such as the biplots you get after a correspondence analysis > (with, for example, package ca), where labels tend to overlap. The > graph aspect ratio is relevant (it needs to be mantained). And I'm > working with Windows XP. > In this kind of graphs points in the graph are identified with labels, > generally long (see, for example: > http://www.white-history.com/Greece_files/hlafreq.jpg), and sometimes > -as in the example- it is good to group certain points within > ellipses. > Do you know if exists some package able to do this task? > Thanks in advance, > HugIf you can live with the ecological overtones of the vegan package, try cca() to fit your CA model and then orditkplot() to fiddle with the ordination labels etc. HTH G -- %~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~% Dr. Gavin Simpson [t] +44 (0)20 7679 0522 ECRC, UCL Geography, [f] +44 (0)20 7679 0565 Pearson Building, [e] gavin.simpsonATNOSPAMucl.ac.uk Gower Street, London [w] http://www.ucl.ac.uk/~ucfagls/ UK. WC1E 6BT. [w] http://www.freshwaters.org.uk %~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%~%
Gabor Grothendieck
2010-Feb-07 23:51 UTC
[R] Interactively editing point labels in a graph
Create your plot and save it in wmf format, e.g. DF <- as.data.frame(state.x77) plot(Income ~ log(Population), DF, pch = 20) with(DF, text(log(Population), Income, rownames(state.x77), cex = 0.5, pos = 4)) savePlot("states.wmf") Then insert it into Microsoft Word, right click the image, choose Edit and you can edit all the text labels. On Wed, Feb 3, 2010 at 2:57 AM, trece por ciento <el13porciento at yahoo.com> wrote:> Dear experts, > I would like to be able to interactively (if possible, with mouse and clik) edit point labels in graphs, particularly in multivariate graphs, such as the biplots you get after a correspondence analysis (with, for example, package ca), where labels tend to overlap. The graph aspect ratio is relevant (it needs to be mantained). And I'm working with Windows XP. > In this kind of graphs points in the graph are identified with labels, generally long (see, for example: http://www.white-history.com/Greece_files/hlafreq.jpg), and sometimes -as in the example- it is good to group certain points within ellipses. > Do you know if exists some package able to do this task? > Thanks in advance, > Hug > > ______________________________________________ > R-help at 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. >