Re: [R] Identify points (was Plot error)

2010-07-18 Thread James Platt
This is exactly what I want as I will have several thousand data  
points on the final graph i make, so the scroll over option is ideal.


I've read the TeachingDemos pdf, I'm working on a Mac so Cannot use  
HWidentify. I have installed and loaded the TeachingDemos package but  
im having trouble loading the tkrplot package after installing it  
won't load.


 library(tcltk)
Loading Tcl/Tk interface ... Error : .onLoad failed in loadNamespace()  
for 'tcltk', details:

  call: dyn.load(file, DLLpath = DLLpath, ...)
  error: unable to load shared library '/Library/Frameworks/ 
R.framework/Resources/library/tcltk/libs/i386/tcltk.so':
  dlopen(/Library/Frameworks/R.framework/Resources/library/tcltk/libs/ 
i386/tcltk.so, 10): Library not loaded: /usr/local/lib/libtcl8.5.dylib
  Referenced from: /Library/Frameworks/R.framework/Resources/library/ 
tcltk/libs/i386/tcltk.so

  Reason: image not found
Error: package/namespace load failed for 'tcltk'

Cheers,

James


On 17 Jul 2010, at 18:12, Peter Ehlers wrote:


On 2010-07-17 9:50, James Platt wrote:

The other question I have:

Is there any way to link the data point on the graph to the name of a
row

i.e in my table:

name value_1 value_2
bill   14
ben  2   2
jane 3   1

I click on the data point at 2,2 and it would read out ben



Check out HWidentify or HTKidentify in pkg:TeachingDemos.

 -Peter Ehlers




__
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.


Re: [R] Identify points (was Plot error)

2010-07-18 Thread David Winsemius


On Jul 18, 2010, at 9:43 AM, James Platt wrote:

This is exactly what I want as I will have several thousand data  
points on the final graph i make, so the scroll over option is ideal.


I've read the TeachingDemos pdf, I'm working on a Mac so Cannot use  
HWidentify.


Not true.

I have installed and loaded the TeachingDemos package but im having  
trouble loading the tkrplot package after installing it won't load.


 library(tcltk)


In the Mac GUI Package Installer, I cannot even find a package by that  
name. However, then running the HWidentify example after  
require(Teaching Demos),  tcltk does get loaded as well as X11, making  
me think you need to provide further information such as that  
requested in the Posting Guide. You may also want to review the  
material in the R for Mac OS X FAQ.


--
David.

 sessionInfo()
R version 2.11.1 Patched (2010-06-14 r52281)
x86_64-apple-darwin9.8.0

locale:
[1] en_US.UTF-8/en_US.UTF-8/C/C/en_US.UTF-8/en_US.UTF-8

attached base packages:
[1] tcltk splines   stats graphics  grDevices utils
[7] datasets  methods   base

other attached packages:
[1] tkrplot_0.0-18TeachingDemos_2.6 gtools_2.6.2
[4] Design_2.3-0  Hmisc_3.8-1   survival_2.35-8
[7] lattice_0.18-8

loaded via a namespace (and not attached):
[1] cluster_1.12.3 grid_2.11.1tools_2.11.1

Loading Tcl/Tk interface ... Error : .onLoad failed in  
loadNamespace() for 'tcltk', details:

 call: dyn.load(file, DLLpath = DLLpath, ...)
 error: unable to load shared library '/Library/Frameworks/ 
R.framework/Resources/library/tcltk/libs/i386/tcltk.so':
 dlopen(/Library/Frameworks/R.framework/Resources/library/tcltk/libs/ 
i386/tcltk.so, 10): Library not loaded: /usr/local/lib/libtcl8.5.dylib
 Referenced from: /Library/Frameworks/R.framework/Resources/library/ 
tcltk/libs/i386/tcltk.so

 Reason: image not found
Error: package/namespace load failed for 'tcltk'
On 17 Jul 2010, at 18:12, Peter Ehlers wrote:


On 2010-07-17 9:50, James Platt wrote:

The other question I have:

Is there any way to link the data point on the graph to the name  
of a

row

i.e in my table:

name value_1 value_2
bill   14
ben  2   2
jane 3   1

I click on the data point at 2,2 and it would read out ben



Check out HWidentify or HTKidentify in pkg:TeachingDemos.

-Peter Ehlers



David Winsemius, MD
West Hartford, CT

__
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.


Re: [R] Identify points (was Plot error)

2010-07-18 Thread Peter Ehlers

You can always use the identify() function which will
leave the id of the point on the plot; see ?identify.

But you do eventually have to sort out your Mac problem.
Sorry, I can't help with that.

  -Peter Ehlers

On 2010-07-18 7:43, James Platt wrote:

This is exactly what I want as I will have several thousand data points
on the final graph i make, so the scroll over option is ideal.

I've read the TeachingDemos pdf, I'm working on a Mac so Cannot use
HWidentify. I have installed and loaded the TeachingDemos package but im
having trouble loading the tkrplot package after installing it won't load.

  library(tcltk)
Loading Tcl/Tk interface ... Error : .onLoad failed in loadNamespace()
for 'tcltk', details:
call: dyn.load(file, DLLpath = DLLpath, ...)
error: unable to load shared library
'/Library/Frameworks/R.framework/Resources/library/tcltk/libs/i386/tcltk.so':

dlopen(/Library/Frameworks/R.framework/Resources/library/tcltk/libs/i386/tcltk.so,
10): Library not loaded: /usr/local/lib/libtcl8.5.dylib
Referenced from:
/Library/Frameworks/R.framework/Resources/library/tcltk/libs/i386/tcltk.so
Reason: image not found
Error: package/namespace load failed for 'tcltk'

Cheers,

James



__
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.


Re: [R] Identify points (was Plot error)

2010-07-17 Thread Peter Ehlers

On 2010-07-17 9:50, James Platt wrote:

The other question I have:

Is there any way to link the data point on the graph to the name of a
row

i.e in my table:

name value_1 value_2
bill   14
ben  2   2
jane 3   1

I click on the data point at 2,2 and it would read out ben



Check out HWidentify or HTKidentify in pkg:TeachingDemos.

  -Peter Ehlers

__
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.