Hello list, Thanks in advance for whatever help you can give me. I have a data set that I want to visualize that has four important dimensions (x,y,z,t). What I would like to be able to do is plot the three spatial coordinates using, say, scatterplot3d (or similar), and have the color of the plotted points be determined by the time coordinate. I've tried using scatterplot3d to do this, but without much success. Thanks again. -------------------------------------------------------------- Jared Nance University of Washington Center For Experimental Nuclear Physics and Astrophysics nancejk at phys.washington.edu
3rd and 4th dimension can easily be accommodated in a 2d plot by using different color, shape of points etc. Therefore you can start with ggplot package. You might also want to look into here : http://had.co.nz/ggplot2/geom_point.html Best, Jared Nance wrote:> > Hello list, > Thanks in advance for whatever help you can give me. I have a data set > that I want to visualize that has four important dimensions (x,y,z,t). > What I would like to be able to do is plot the three spatial coordinates > using, say, scatterplot3d (or similar), and have the color of the plotted > points be determined by the time coordinate. I've tried using > scatterplot3d to do this, but without much success. Thanks again. > > -------------------------------------------------------------- > Jared Nance > University of Washington > Center For Experimental Nuclear Physics and Astrophysics > nancejk at phys.washington.edu > > ______________________________________________ > 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. > >-- View this message in context: http://n4.nabble.com/4D-plotting-tp949589p949594.html Sent from the R help mailing list archive at Nabble.com.
Hi Jared, google R graph library 4d or http://addictedtor.free.fr/graphiques/RGraphGallery.php?graph=90 bests milton On Sun, Dec 6, 2009 at 7:31 AM, Jared Nance <nancejk@phys.washington.edu>wrote:> Hello list, > Thanks in advance for whatever help you can give me. I have a data set > that I want to visualize that has four important dimensions (x,y,z,t). > What I would like to be able to do is plot the three spatial coordinates > using, say, scatterplot3d (or similar), and have the color of the plotted > points be determined by the time coordinate. I've tried using > scatterplot3d to do this, but without much success. Thanks again. > > -------------------------------------------------------------- > Jared Nance > University of Washington > Center For Experimental Nuclear Physics and Astrophysics > nancejk@phys.washington.edu > > ______________________________________________ > 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<http://www.r-project.org/posting-guide.html> > and provide commented, minimal, self-contained, reproducible code. >[[alternative HTML version deleted]]