[R] dataframe: visualization as tiles(?)

Itay Furman itayf at fhcrc.org
Wed Apr 14 23:13:56 CEST 2004


Thanks, but no. In the method that I remember the plot was an 
assortment of oblong(?) tiles, optionally color coded, and 
filling a square region.
According to my recollection it was possilbe to add more 
variables, in which case each tile is broken down further into 
sub-tiles.

	Itay


 On Wed, 14 Apr 2004, Jason Turner wrote:

> >
> > Dear R users,
> >
> > I remember seeing somewhere a method of visualizing a set of
> > observations on two variables x and y in the following way
> 
> Is this what you want?
> 
> > ## fake data
> > zz <- data.frame(x=sample(0:1,20,rep=T),y=sample((-1:1),20,rep=T))
> > zz
> 
> > ## tabulate it
> > zz.tab <- data.frame(table(zz))
> > zz.tab
> > library(lattice)
> > barchart(y ~ Freq | x, data=zz.tab)
> 
> Cheers
> 
> Jason
>




More information about the R-help mailing list