Re: [R] How to draw following plot in R?

From: Barry Rowlingson <b.rowlingson_at_lancaster.ac.uk>
Date: Sat, 22 Nov 2008 13:12:20 +0000

2008/11/22 RON70 <ron_michael70_at_yahoo.com>:
>
> I want to draw following plot, given here
> http://www.2shared.com/file/4327128/830b82c4/pic.html
> for the following data :
>
> dat <- cbind(rnorm(100), sample(c(1:4), 1000, T))
> colnames(dat) <- c("data","level")
>
> Here x-axis should be on "data" and y-axis is for "level" and z-axis should
> be to display the frequency of "data" for a particular "level"
>
> Is there any R code(s) to doing that?

 I'm pretty sure there's no code for doing it in character graphics like in your image link!

 Something similar can be found in the R graph gallery:

  http://addictedtor.free.fr/graphiques/RGraphGallery.php?graph=116

 Or if you want an interactive spinny 3d-histogram, get the rgl package and look at demo(hist3d). See:

 http://rgl.neoscientists.org/gallery.shtml

 Those links should get you started. If you really do want ascii character graphics...well, I think you're on your own....

Barry



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 Sat 22 Nov 2008 - 13:19:18 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 Sat 22 Nov 2008 - 15:30:26 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