The built-in R graphics system was not designed for interactivity -- there is no [feasible] way to detect the data point coordinates in a base graphics plot. The playwith package tries to figure out the coordinates from the data objects given in the call: this works for simple scatterplots etc, but is non-trivial for your CA plot. You *could* define functions to enable playwith to work correctly in this case: the functions would be called something like "plotCoords.plot.ca" and possibly "case.names.ca" (if case.names.default does not already work).
Regards -Felix On 6 February 2010 23:11, trece por ciento <el13porcie...@yahoo.com> wrote: > Many thanks, Felix > It worked, simply importing the emf into PowerPoint! > By the way, as you are the maintainer of playwith, a question: Why is > playwith unable to cope with it? > I liked very much the playwith option because it is easy to use, and has all > the basic capabilities that I need. > Best regards, > Hug > > --- On Wed, 2/3/10, Felix Andrews <fe...@nfrac.org> wrote: > >> From: Felix Andrews <fe...@nfrac.org> >> Subject: Re: [R] Interactively editing point labels in a graph >> To: "trece por ciento" <el13porcie...@yahoo.com> >> Cc: "Liviu Andronic" <landronim...@gmail.com>, r-help@r-project.org >> Date: Wednesday, February 3, 2010, 4:51 PM >> For your situation, perhaps the best >> option is to save the plot in a >> vector format like WMF, PDF or SVG, and open it with an >> external >> editor. Inkscape is a good one. >> >> >> On 4 February 2010 06:46, trece por ciento <el13porcie...@yahoo.com> >> wrote: >> > 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 <landronim...@gmail.com> >> wrote: >> > >> >> From: Liviu Andronic <landronim...@gmail.com> >> >> Subject: Re: [R] Interactively editing point >> labels in a graph >> >> To: "trece por ciento" <el13porcie...@yahoo.com> >> >> Cc: r-help@r-project.org >> >> Date: Wednesday, February 3, 2010, 3:49 AM >> >> Hello >> >> >> >> On 2/3/10, trece por ciento <el13porcie...@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@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 >> >> >> > >> > >> > >> > >> > ______________________________________________ >> > 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. >> > >> >> >> >> -- >> Felix Andrews / 安福立 >> Postdoctoral Fellow >> Integrated Catchment Assessment and Management (iCAM) >> Centre >> Fenner School of Environment and Society [Bldg 48a] >> The Australian National University >> Canberra ACT 0200 Australia >> M: +61 410 400 963 >> T: + 61 2 6125 4670 >> E: felix.andr...@anu.edu.au >> CRICOS Provider No. 00120C >> -- >> http://www.neurofractal.org/felix/ >> > > > > -- Felix Andrews / 安福立 Postdoctoral Fellow Integrated Catchment Assessment and Management (iCAM) Centre Fenner School of Environment and Society [Bldg 48a] The Australian National University Canberra ACT 0200 Australia M: +61 410 400 963 T: + 61 2 6125 4670 E: felix.andr...@anu.edu.au CRICOS Provider No. 00120C -- http://www.neurofractal.org/felix/ ______________________________________________ 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.