Dear all
I'm developing a grafical interface for Geneland that is presently one of the
R packages available.
My first question is about refreshing the interface while running a very long
process.
run<-function(){
tttry <- tktoplevel()
tkwm.geometry(tttry, "+200+200")
you don't see the line b/c you're squaring both "pi" and "-pi"
compare that with
lines(c(0,0), c(-1,1)*(2*pi)^2)
b
On Jan 23, 2007, at 10:41 AM, Spencer Graves wrote:
> Consider the following:
>
> plot(0, 0, xlim=c(-10, 10), ylim=c(-50, 50))
> lines(c(0,0), (2*c(-pi, pi))^2)
>
>
On Tue, 23 Jan 2007, Spencer Graves wrote:
> Consider the following:
>
> plot(0, 0, xlim=c(-10, 10), ylim=c(-50, 50))
> lines(c(0,0), (2*c(-pi, pi))^2)
>
> I see no line in this plot.
I do. You are drawing a line from a point to itself. Try lwd=5 and it
will be more visible.
>
>
On Jan 23, 2007, at 10:41 AM, Spencer Graves wrote:
> Consider the following:
>
> plot(0, 0, xlim=c(-10, 10), ylim=c(-50, 50))
> lines(c(0,0), (2*c(-pi, pi))^2)
>
You are creating a line from point (0,(2*(-pi))^2) to point (0,(2*pi)
^2), however, since (-pi)^2=pi^2, it's not much of
On Tue, 2007-01-23 at 07:41 -0800, Spencer Graves wrote:
> Consider the following:
>
> plot(0, 0, xlim=c(-10, 10), ylim=c(-50, 50))
> lines(c(0,0), (2*c(-pi, pi))^2)
>
> I see no line in this plot.
>
> R version 2.4.1 (2006-12-18)
> i386-pc-mingw32
>
> locale:
> LC_COLLATE=E
Spencer Graves wrote:
> Consider the following:
>
> plot(0, 0, xlim=c(-10, 10), ylim=c(-50, 50))
> lines(c(0,0), (2*c(-pi, pi))^2)
Because squaring is done before multiplication - its higher priority.
Hence you end up with (-2*pi)^2 and (2*pi)^2, which are the same, and
your 'lin
That's because your "line" is a point. Both components of the y vector
are equal. Check your parens.
On 1/23/07, Spencer Graves <[EMAIL PROTECTED]> wrote:
> Consider the following:
>
> plot(0, 0, xlim=c(-10, 10), ylim=c(-50, 50))
> lines(c(0,0), (2*c(-pi, pi))^2)
>
> I see no line
Consider the following:
plot(0, 0, xlim=c(-10, 10), ylim=c(-50, 50))
lines(c(0,0), (2*c(-pi, pi))^2)
I see no line in this plot.
R version 2.4.1 (2006-12-18)
i386-pc-mingw32
locale:
LC_COLLATE=English_United States.1252;LC_CTYPE=English_United
States.1252;LC_MONETARY=Englis
There are two options, you can check to see if 'object.lm' inherits from "lm"
using 'inherits()' or make comp.var.estimates a generic and then make a method
for "lm" objects.
-roger
Michael Rennie wrote:
> Hi, there
>
> I tried this post on R-help but did not generate any replies, so I thought