I forgot to change the header, so I guess no one read my mail. That's why I'm 
trying it again...


> 
> 
> Hello everbody,
> 
> I am new to this mailing list and hope to find some help.
> I'm trying to get into the spatstat package and encountered two problems. 
> First a graphical one:
> There is an example dataset called "finpines" which has several marks 
> (http://www.oga-lab.net/RGM2/func.php?rd_id=spatstat:finpines)
> When I pass the given code from the website to R 
> 
> 
> 
>     data(finpines)
>     
> plot(unmark(finpines), main="Finnish pines: locations")
> plot(finpines, which.marks="height", main="heights")
>     
> plot(finpines, which.marks="diameter", main="diameters")
> I get the warning
> 
> Warnmeldung:
> In symbols(c(-1.993875, -1.019901, -4.914071, -4.469962, -4.303847,  :
>   "which.marks" ist kein Grafikparameter
> 
> Something like "which.marks" is not a graphic parameter; and the plots for 
> height and diameter show now differences.
> 
> Furthermore, I  want to create a ppp with several marks, but I did not figure 
> out how this works.
> Trying
> 
> X <- as.ppp(mydata, owin(c(174, 178), c(29, 33)))
> 
> just gives the error
> 
> Error in as.ppp(mydata, owin(c(174, 178), c(29, 33))) : 
>   X must be a two-column or three-column data frame
> 
> The data set looks something like
> 
> Date   X   Y    Mar1    Mar2    Mar3
> 
> 1.1.    4   3     50       6          A
> 2.1.    2   1     40       9          A
> 3.1.    5   8     35       12        B
> 
> But how can I integrate two or more marks in a three-column data frame, when 
> two columns are already needed for the X and Y coordinates?
> 
> I hope you can help me with this.
> 
> Cheers
> sina
> 
> 
> 
> 
>                                         
>       [[alternative HTML version deleted]]
> 
> ______________________________________________
> 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]]

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

Reply via email to