Megan
Megan

Reputation: 195

Having trouble executing the edits to scatter3d.default

This seems very helpful but I'm having trouble doing it. If I type car:::scatter.default it returns: Error in get(name, envir = asNamespace(pkg), inherits = FALSE) : object 'scatter.default' not found, but car:::scatter3d.default returns the entire function. Do I edit scatter3d.default? When I add the if (axis.scales) code to scatter3d.default I get an error saying: Error in match.arg(id.method) : object 'id.method' not found? Do you have the full version of the code edits that I could use?

Upvotes: 1

Views: 1307

Answers (1)

Ben Bolker
Ben Bolker

Reputation: 226182

Try this:

library(car)
source(url("http://www.math.mcmaster.ca/bolker/R/misc/scatter3d.R"))
scatter3d(prestige ~ income + education, data=Duncan)

You could also use download.file to grab the file and source() it locally.

Upvotes: 1

Related Questions