Displaying 20 results from an estimated 90000 matches similar to: "locator and print"
2009 May 24
1
Timing issue using locator() in loop containing print()
I am attempting to use locator(n=2) to select the corners of several (5 in
this case) rectangles on an image displayed in a JavaGD window. The returned
coords are used to draw labeled rectangles around the selected region. I
have tried several things to get this to work including sys.Sleep to correct
what appears to be a timing issue with this loop. The first-time print in
the loop
2005 Apr 17
1
Unlogical phenomenon caused by locator
I was wondering if someone could help me!
Here is what I don't understand!
Why the text in the function isn't showing up before the locator action?
###########
plot(1:10)
toto<-function(){
cat("Why this text isn't showing up before the point selection !!!!!!!!")
point<-locator(2)
return(point)
}
toto()
P.S.: I am using the most recent version of R for mac
Thanks
1999 Jan 19
2
locator(n=1) or (n=500) as S-plus ?
There's a non-compatibility between R and S-plus
with the default argument of the
locator()
function.
R has locator(n=1)
S-plus has locator(n=500, type="n", noclick=F)
S's default is ``better'' I think, insofar as it means in 99% of the cases
``user clicks <left> as many times as wanted
and then clicks <right> to end''
Ross Ihaka and his grad
2004 Apr 16
7
Turning windows screen buffering on and off
All,
Does anyone know if there is an option I can set to turn screen-buffered
output on and off with the win32 rgui? (Apart from the point and click
method).
I am running some simulations where it is useful to watch output but it
gets mildly tiresome having to manually switch things on and off via the
gui.
Thanks
Toby.
> version
_
platform i386-pc-mingw32
arch
2013 Oct 30
2
Huge performance difference between implicit and explicit print
Hi all,
Can anyone help me understand why an implicit print (i.e. just typing
df at the console), is so much slower than an explicit print (i.e.
print(df)) in the example below? I see the difference in both Rstudio
and in a terminal.
# Construct large df as quickly as possible
dummy <- 1:18e6
df <- lapply(1:10, function(x) dummy)
names(df) <- letters[1:10]
class(df) <-
2003 Feb 25
3
cat in windows vs linux
Hi all,
Easy question for you (which I failed to find the answer to in the FAQ etc). I've recently been forced to switch from linux to windows (currently windows NT), and my usual habit of putting lots of "cat" statements in slow functions to get an idea of the progress rate is no longer useful. Why -- because R waits until the function is completely finished before printing the cat
2005 Oct 10
5
Show Progress in loop
Hi
I have a loop which is doing time consuming calculations and I would
like to be able to have some feedback on where it is in it's
calculations. I tried to simply show the counter variable in the loop,
but id doesn't work as all display seems to be delayed until the loop is
completed. Is there any way of displaying the progress of a loop?
Rainer
The loop:
for (i in
2009 Sep 09
2
Problem with print()
Dear R-users,
I?m having for the first time a problem while printing out values in the
screen,
I have a function wich takes quite a long time to execute, and I thought
it?d be useful to insert a print statement inside the main loop to keep
control of the current iteration,
however, for some reason, the prints() are not shown in real time, and
only when I stop the execution, all prints up to
2007 Feb 27
7
[Xen-ia64-devel] [PATCH 0/3][IA64] Accelerate IDE PIO on HVM/IA64
Hi,
This set of patches remarkably accelerates IDE PIO on HVM/IA64.
I got a throughput of 2.11MB/sec in disk read performance.
Without it, it was only 64kB/sec.
I posted the prototype once.
http://lists.xensource.com/archives/html/xen-devel/2006-12/msg00077.html
The basic idea is to add a buffering mechanism in a hypervisor.
I know this approach is not sophisticated. But there is no other
good
2011 Apr 18
1
cairo device and locator on windows
In several tries, I am finding the locator and identify functions on the
cairo device on Windows,
with R-2.13.0, do not seem to work correctly. Here is my experience with
locator where I click the
four corners of the device window.
First, with the windows() device, the results are consistent with what I see
on screen
> windows()
> plot(1,1)
> locator()
$x
[1] 0.6075000 1.3981252
2005 May 17
3
locator() (PR#7873)
Full_Name: Sascha Frydman
Version: 2.1.0
OS: Windows XP
Submission from: (NULL) (147.66.131.10)
when Esc is pressed while a plot with locator running has the focus, R crashes.
eg.
plot(1)
locator(1)
I am running in SDI mode
2009 Dec 18
2
[LLVMdev] [PATCH] Circular Buffered Debug Stream
On Friday 18 December 2009 13:56, David Greene wrote:
> On Friday 18 December 2009 13:53, David Greene wrote:
> > > > + void releaseStream() {
> > > > + // Delete the stream if needed. Otherwise, transfer the buffer
> > > > + // settings from this raw_ostream back to the underlying
> > > > stream. + if (!TheStream)
> > >
2008 Oct 14
1
abline and locator?
Hi,
I'd like to plot vertical lines on my plot using the locator.But since
locator returns two values I end up getting 2 vertical lines for every
click.Is there some way only the x coordinate from locator can be returned?
--
Rajesh.J
------------------------------------------------------------
"I skate to where the puck is going to be, not where it has been." - Wayne
Gretzky
2004 Feb 27
3
locator(n=0)
locator(n=1) returns the coordinates of the position of the mouse.
But you have to click the left button of the mouse.
How can I determine the mouse position without any click?
Is it possible to extend locator in a way that
locator(n=0) outputs the coordinates at once, without any click event?
TclTk allows us to define very nice animations and demonstrations,
see for example: demo(tkdensity).
2005 Jun 04
2
locator() via tcltk
Hello,
I'm trying to write a function using tcltk to interactively modify a plot
and gather locator() data. I've read Peter's articles in Rnews, the help
pages in tcltk, http://bioinf.wehi.edu.au/~wettenhall/RTclTkExamples/,
plus a post in R-help sometime ago, but haven't found a solution.
The idea goes something like this:
require(tcltk)
testplot <- function() {
getcoords
2009 Oct 03
1
Graphics Device; locator function
Hi, haven't been here for a while, but everyone one was always so
helpful I thought I would ask you another really basic question.
I'm running R2.9.1 in Ubuntu8.04 on a netbook (maxed out on memory etc
so I don't think that's a problem - wth it's a Dell Mini 9" with that
lpia non-architecture you told me about).
Anyway, some of the graphics functions/parameters are
2012 Jun 21
1
dc locator/site awareness, and samba-winbind-krb5-locator
Hi all
A couple of questions for you on domain integration:
Firstly, can someone please explain to me where/how a samba device's site info is cached? I see from a trace that when winbind starts it goes through the usual process that a windows device does (DNS query for non site-specific SRV, LDAP query/response with site name, DNS query for site-specific SRV).
- How is the site info
1999 Feb 25
1
locator() and log axes (PR#126)
In both the versions of 0.63.3 I have compiled locator() gives silly
results for log axes eg
> plot(1:10,log="x")
> locator(1) #click on the point at (4,4)
$x
[1] 9694.383
$y
[1] 4.034130
It appears that the x coordinate is 10^right number -- it's getting
unlogged twice
--please do not edit the information below--
Version:
platform = sparc-sun-solaris2.6
arch = sparc
2001 Jul 25
1
Turning of locator() beep?
Is there a way to turn of the (annoying) beep that occurs when one calls the
locator() command and clicks the mouse. Try
plot(0)
locator(n=10)
I am running Rterm on WindowsMe/Cygwin bash and I don't know if this is the
case on other platforms.
Thanks to everyone!
Henrik Bengtsson
h b @ m a t h s . l t h . s e
2010 Jul 29
2
locator function and connecting segment
Dear R People:
I'm using the locator() function on a chart and I select two values.
Is there a way already in place to connect the two values with a line
segment, please?
Just thought I'd check before I started coding.
Thanks in advance,
Sincerely,
Erin
--
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: