[R] Stacked squares plots

2014-11-03 Thread Osman Al-Radi
Dear R-help users, I would like to produce a plot of ordered stacked coloured square where each square would represent a level of a categorical variable CAT (aprox. 150 levels), the size of the square would represent the frequency FREQ (count) of that level, the color would represent a proporti

Re: [R] panel.text question

2009-09-26 Thread Osman Al-Radi
function(x, y, subscripts, ...){ > panel.loess(x, y) > panel.text(0, 2, > label=c('best','better','bad','worst')[tail(subscripts, 1)/100]) > }) > > On Thu, Sep 24, 2009 at 2:45 PM, Osman Al-Radi > wrote: > > Dear R-h

[R] panel.text question

2009-09-24 Thread Osman Al-Radi
Dear R-help, I would like to add text to each of four panels in a plot generated by xyplot in lattice library. A sample code is given below, the plot generated has the first label repeated in all panels! How can I get the labels to be different in each panel? library(lattice) x <- rnorm(400) y <

Re: [R] a plot of stacked boxes

2009-06-26 Thread Osman Al-Radi
Dear Richard and David, Thanks for this reference. I looked into vcd and mosaic plot, it is a nice plot for investigating associations between two or more variables. However, I just need to plot the frequency of a single variable as the area of the box. boxes are stacked to fill a larger box that

[R] a plot of stacked boxes

2009-06-19 Thread Osman Al-Radi
Hello, I would like to create a plot composed of stacked boxes (squares or rectangles), where the size of the box would represent the frequency of observations based on a categorical variable (group), the color would represent the proportion of success (binary) within that group (outcome) on a pre

[R] a plot of stacked boxes

2009-06-19 Thread Osman Al-Radi
Hello, I would like to create a plot composed of stacked boxes (squares or rectangles), where the size of the box would represent the frequency of observations based on a categorical variable (group), the color would represent the proportion of success (binary) within that group (outcome) on a pre