[R-SIG-Mac] [R] problem with plot

Edouard Henrion Edouard.Henrion at broca.inserm.fr
Mon Mar 21 12:07:40 CET 2005


Thank you for your answers.

Here are more details about the plot() function and objects I am using.

I am using the "amap" library :
 > library(amap)

Here is the plot() function :
 > plot
function (x, y, ...)
{
     if (is.null(attr(x, "class")) && is.function(x)) {
         nms <- names(list(...))
         if (missing(y))
             y <- {
                 if (!"from" %in% nms)
                   0
                 else if (!"to" %in% nms)
                   1
                 else if (!"xlim" %in% nms)
                   NULL
             }
         if ("ylab" %in% nms)
             plot.function(x, y, ...)
         else plot.function(x, y, ylab = paste(deparse(substitute(x)),
             "(x)"), ...)
     }
     else UseMethod("plot")
}
<environment: namespace:graphics>

These are my objects :
 > ls()
[1] "d"       "h"

"d" is a dissimilarity matrix :
 > str(d)
Class 'dist'  atomic [1:8106351] 0.717 0.721 0.966 0.622 0.936 ...
   ..- attr(*, "Size")= int 4027
   ..- attr(*, "Labels")= chr [1:4027] "1" "2" "3" "4" ...
   ..- attr(*, "Diag")= logi FALSE
   ..- attr(*, "Upper")= logi FALSE
   ..- attr(*, "method")= chr "pearson"
   ..- attr(*, "call")= language dist(x = lf, method = "pearson")
 > object.size(d)
[1] 65012860

and "h" is the cluster dendogram built from "d" ( h <- hclust(d, 
"ward") ) :
 > str(h)
List of 7
  $ merge      : int [1:4026, 1:2] -253 -983 -1671 -520 -287 -3668 -1215 
-154 -2778 -3937 ...
  $ height     : num [1:4026] 0.00825 0.00887 0.00909 0.00931 0.00993 ...
  $ order      : int [1:4027] 2152 3971 3942 1580 2192 484 1587 1550 
2420 3469 ...
  $ labels     : chr [1:4027] "1" "2" "3" "4" ...
  $ method     : chr "ward"
  $ call       : language hclust(d = d, method = "ward")
  $ dist.method: chr "pearson"
  - attr(*, "class")= chr "hclust"
 > object.size(h)
[1] 242792

This is what the capabilities() function shows :
 > capabilities()
     jpeg      png    tcltk      X11    GNOME     libz http/ftp  sockets 
   libxml     fifo   cledit  IEEE754    bzip2     PCRE
    FALSE    FALSE     TRUE     TRUE    FALSE     TRUE     TRUE     TRUE 
     TRUE     TRUE     TRUE     TRUE     TRUE     TRUE

And here is the plot command I am using :
 >plot(h)


Regards,

Edouard


Le 18 mars 05, à 15:48, Don MacQueen a écrit :

> And what was the plot command that resulted in a segfault?
>
> Any and every plot command you have tried? Or just some?
>
> What does the capabilities() function show?
>
> -Don
>
> At 11:49 AM +0100 3/18/05, Edouard Henrion wrote:
>> Dear list,
>>
>> I am using R.2.0.1 on a G5 biprocessor 2.5GHz with 2Go RAM (Mac OS X 
>> 10.3.8).
>>
>> I have some problems to use the plot function... it makes my R 
>> application crash ! By "crash" I mean that it closes the application. 
>> And when I try through the terminal it says "segmentation fault"...
>>
>> I've installed R from the source (I tried the compilation with gcc 
>> 3.1 and 3.3) and the result is the same.
>>
>> Have someone any idea about this problem ???
>>
>> Thanks,
>>
>> Edouard
>>
>
> -- 
> --------------------------------------
> Don MacQueen
> Environmental Protection Department
> Lawrence Livermore National Laboratory
> Livermore, CA, USA
> --------------------------------------
>

	[[alternative text/enriched version deleted]]



More information about the R-SIG-Mac mailing list