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

From: Barry Rowlingson <>
Date: Sat, 22 Nov 2008 13:12:20 +0000

2008/11/22 RON70 <>:
> I want to draw following plot, given here
> 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:

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

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

Barry mailing list PLEASE do read the posting guide 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 Please read the posting guide before posting to the list.

list of date sections of archive