I am using scatter3d in R Commander to plot a group of regression surfaces. However, I only want to display the surfaces. How do I remove the points? [[alternative HTML version deleted]]
Dear Jeff, I'm tempted to say that a scatterplot without points is an oxymoron, but that wouldn't be very helpful. Actually, the scatter3d() function used by the Rcmdr is in the car package. The Rcmdr 3D scatterplot dialog doesn't provide for suppressing the points, but if you add radius=rep(0, n) to the command that's generated, where you'd replace n with the number of cases in the dataset, that would do the trick by plotting spheres of 0 radius. For example, try scatter3d(prestige ~ income + education, data=Duncan, radius=rep(0, 45), residuals=FALSE) either in the Rcmdr or at the R command prompt. For more information see ?scatter3d or press the Help button in the Rcmdr 3D scatterplot dialog and follow the link to scatter3d. I hope this helps, John ----------------------------- John Fox, Professor McMaster University Hamilton, Ontario Canada L8S 4M4 Web: socserv.mcmaster.ca/jfox> -----Original Message----- > From: R-help [mailto:r-help-bounces at r-project.org] On Behalf Of Jeff > Tostenrude > Sent: October 2, 2015 7:34 PM > To: r-help at r-project.org > Subject: [R] scatter3d > > I am using scatter3d in R Commander to plot a group of regression surfaces. > However, I only want to display the surfaces. How do I remove the points? > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > 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.
Wouldn't you just stop using scatter3d? --------------------------------------------------------------------------- Jeff Newmiller The ..... ..... Go Live... DCN:<jdnewmil at dcn.davis.ca.us> Basics: ##.#. ##.#. Live Go... Live: OO#.. Dead: OO#.. Playing Research Engineer (Solar/Batteries O.O#. #.O#. with /Software/Embedded Controllers) .OO#. .OO#. rocks...1k --------------------------------------------------------------------------- Sent from my phone. Please excuse my brevity. On October 2, 2015 4:34:19 PM PDT, Jeff Tostenrude <climberjeff at gmail.com> wrote:>I am using scatter3d in R Commander to plot a group of regression >surfaces. >However, I only want to display the surfaces. How do I remove the >points? > > [[alternative HTML version deleted]] > >______________________________________________ >R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see >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.
Thank you for the suggestion. Yes, it does seem to be a bit counter-intuitive, but that is the output I am being asked to produce. I have only been using R for a few weeks, so there is probably a better way to do it. Anyway, your suggestion did work, but only up to 337 data points. I am dealing with ~100,000 data points so this doesn't really work for me. Is there another method you would suggest? My goal is to plot multiple regression planes (without points) in an interactive 3d plot. Thank you, Jeff On Fri, Oct 2, 2015 at 5:22 PM, Fox, John <jfox at mcmaster.ca> wrote:> Dear Jeff, > > I'm tempted to say that a scatterplot without points is an oxymoron, but > that wouldn't be very helpful. > > Actually, the scatter3d() function used by the Rcmdr is in the car > package. The Rcmdr 3D scatterplot dialog doesn't provide for suppressing > the points, but if you add radius=rep(0, n) to the command that's > generated, where you'd replace n with the number of cases in the dataset, > that would do the trick by plotting spheres of 0 radius. For example, try > > scatter3d(prestige ~ income + education, data=Duncan, > radius=rep(0, 45), residuals=FALSE) > > either in the Rcmdr or at the R command prompt. > > For more information see ?scatter3d or press the Help button in the Rcmdr > 3D scatterplot dialog and follow the link to scatter3d. > > I hope this helps, > John > > ----------------------------- > John Fox, Professor > McMaster University > Hamilton, Ontario > Canada L8S 4M4 > Web: socserv.mcmaster.ca/jfox > > > > > -----Original Message----- > > From: R-help [mailto:r-help-bounces at r-project.org] On Behalf Of Jeff > > Tostenrude > > Sent: October 2, 2015 7:34 PM > > To: r-help at r-project.org > > Subject: [R] scatter3d > > > > I am using scatter3d in R Commander to plot a group of regression > surfaces. > > However, I only want to display the surfaces. How do I remove the points? > > > > [[alternative HTML version deleted]] > > > > ______________________________________________ > > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > > 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]]