s-news
[Top] [All Lists]

Histograms/Density/Quantile plots

To: s-news@lists.biostat.wustl.edu
Subject: Histograms/Density/Quantile plots
From: Santosh <santosh2005@gmail.com>
Date: Sun, 7 Oct 2007 08:04:32 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; bh=jDdu6zdTsS3K4H4B+e7rgn4tIZyEt0HSxRy2DkT/OvA=; b=g9nHlGys+LLP19R85pQtuTl1Q6aKwTZuc3npLRhxIwpxNDuCoITk2KuJ8G4K57bd+0ktwc1K4mjIoRWpzLDLzZK+HIbvEgy5Jpi2P7iWgJViTjrnuaFy3KXMZkO+iP3PfzWCJxnjpk0JiFCE0tf5YY6VTGubgVhyomtLm1AZE8Y=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=W3uI750psm94itC1kDdI7LTH6oZRawwgJGiq+lKkT4AsuaJ5kcCAn/DYfcIqVPKXdKpV3z4Hj+ydpP53vUGncPgPPiQzUIvuibeI5bo5fOyonDkDEvHrCMEDXAOmHAlYJEej8Ts+2GDAgghZllVwAdapdU5RngrmVaB6t/ntCP4=
Hi R/S+ians
Good Morning...

I was wondering if there is a way to plot the following in one plot:
1     histogram of dichotomous distribution of data with bars next to each other; colors may be used to distinguish categories.
2     overlay the histogram with density and quantile lines of categorical data
3     Customize the x and y-axes as:
  • x - ticks display breaks applicable to the dichotomous bars as value instead of %s, so that the bars in each break/class are positioned on or around that value; x-label takes the column name of the variable
  • y axis and ticks are applicable for both density lines and bars; number of density lines  =  number of categories
c) Add legends for  bars and lines

In addition, I would highly appreciate your inputs for the following:
1) How is "width" calculated when using barplot(x, ...,beside=T, plot=T or plot=F)
2) What functions are used to calculate density (as mentioned above?

Thanks much in advance
Santosh
<Prev in Thread] Current Thread [Next in Thread>