Re: [R] Problem with scatterplot3d example

From: Uwe Ligges <ligges_at_statistik.tu-dortmund.de>
Date: Thu, 24 Jul 2008 17:04:26 +0200

Duncan Murdoch wrote:
> On 7/24/2008 8:02 AM, Tom La Bone wrote:

>> I tried to run the following example from section 4.1.4 of the 
>> "Scatterplot3d
>> -
>> an R package for Visualizing Multivariate Data" vignette and got an 
>> error on
>> the part that plots the regression plane:
>>
>>> library(scatterplot3d)
>>> data(trees)
>>> s3d <- scatterplot3d(trees, type = "h", color = "blue",
>> + angle = 55, scale.y = 0.7, pch = 16, main = "Adding elements")
>>> my.lm <- lm(trees$Volume ~ trees$Girth + trees$Height)
>>> s3d$plain3d(my.lm)
>>
>> Error: attempt to apply non-function
>>
>>> s3d$points3d(seq(10, 20, 2), seq(85, 60, -5), seq(60, 10, -10),
>> + col = "red", type = "h", pch = 8)
>>
>> Any ideas on what I need to change in order to get the plane to plot?

>
> You need to correct the spelling error: you want plane3d, not plain3d.
>
> (This typo is in the vignette; I'm surprised it didn't get caught
> automatically.)

Since it is not a proper vignette, just copied from the original article.

I will correct the mistake, thank you for spotting!

Best wishes,
Uwe

> Duncan Murdoch
>
> ______________________________________________
> R-help_at_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.



R-help_at_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. Received on Thu 24 Jul 2008 - 15:42:31 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 24 Jul 2008 - 16:32:11 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive