Christopher W Ryan
2014-May-20 20:31 UTC
[R] empty density plot for point pattern in spatstat
I'm running R-3.0.3 on Windows XP Professional on an institutional PC. (My freedom to update to a more recent version of R is limited, although I might be able to prevail upon the powers that be, if that would solve the problem.) I installed spatstat via install.packages() and received version 1.37-0. Here is some code: library(spatstat) data(redwood) plot(redwoods) # works OK plot(Kest(redwood)) # works OK plot(density(redwood)) # produces an "empty" plot as described above Any suggestions? What am I missing? Thanks. --Chris Ryan
It works just fine for me ... using R-3.1.0 on Windows 7 and spatstat version 1.37-0. Jean On Tue, May 20, 2014 at 3:31 PM, Christopher W Ryan <cryan@binghamton.edu>wrote:> I'm running R-3.0.3 on Windows XP Professional on an institutional PC. > (My freedom to update to a more recent version of R is limited, > although I might be able to prevail upon the powers that be, if that > would solve the problem.) > > I installed spatstat via install.packages() and received version 1.37-0. > > Here is some code: > > library(spatstat) > data(redwood) > plot(redwoods) # works OK > plot(Kest(redwood)) # works OK > plot(density(redwood)) # produces an "empty" plot as described above > > Any suggestions? What am I missing? > > Thanks. > > --Chris Ryan > > ______________________________________________ > 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. >[[alternative HTML version deleted]]
Christopher W Ryan
2014-Jun-17 15:49 UTC
[R] empty density plot for point pattern in spatstat
I upgraded to version 3.1.0 of R, still on Win XP, but that did not
solve the problem:
library(spatstat)
data(redwood)
str(redwood)
plot(redwood) # works OK
plot(Kest(redwood)) # works OK
plot(density(redwood)) # produces an "empty" plot
# with just the figure border
# and a thin vertical box for
the color ramp
# but no color ramp in it
Any other ideas? I'd be much obliged.
Thanks.
--Chris Ryan
On Tue, May 20, 2014 at 4:31 PM, Christopher W Ryan
<cryan at binghamton.edu> wrote:> I'm running R-3.0.3 on Windows XP Professional on an institutional PC.
> (My freedom to update to a more recent version of R is limited,
> although I might be able to prevail upon the powers that be, if that
> would solve the problem.)
>
> I installed spatstat via install.packages() and received version 1.37-0.
>
> Here is some code:
>
> library(spatstat)
> data(redwood)
> plot(redwoods) # works OK
> plot(Kest(redwood)) # works OK
> plot(density(redwood)) # produces an "empty" plot as described
above
>
> Any suggestions? What am I missing?
>
> Thanks.
>
> --Chris Ryan