[R] Plotting Question

From: <Steve_Friedman_at_nps.gov>
Date: Wed, 09 Jun 2010 11:42:36 -0400


I would like to produce a series of graphs comparing the probability distributions for 8 factors against a continuous metric.

The kind of graph I'm hoping to produce would look like the density comparison graphs (library sm) using the function sm.density.compare. However, instead of calculating the density distributions for comparisons, I'd like this comparison to be based on probabilities.

An example of the graph I'm seeking can be seen here: http://www.statmethods.net/graphs/density.html (scroll to the bottom and examine the Comparing Groups via Kernel Density).

A graph (attached) produced using my data:
> attach(SoilVegHydro)

> vegtype.f <- factor(Physiogomy)

 > sm.density.compare(meanAnnualDepthAve, vegtype.f, xlab="Mean Annual Depth")

  # create color fill patterns
  >colfill <- c(2:(2+length(levels(vegtype.f))))   > legend(locator(1), levels(vegtype.f), fill=colfill)

(See attached file: MeanAnnualDepth_Density.png)


Steve Friedman Ph. D.
Spatial Statistical Analyst
Everglades and Dry Tortugas National Park 950 N Krome Ave (3rd Floor)
Homestead, Florida 33034

Office (305) 224 - 4282
Fax (305) 224 - 4147

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 Wed 09 Jun 2010 - 15:46:21 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 Wed 09 Jun 2010 - 16:20:28 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