Bug 16552 - stripchart new method
Summary: stripchart new method
Status: UNCONFIRMED
Alias: None
Product: R
Classification: Unclassified
Component: Graphics (show other bugs)
Version: R-devel (trunk)
Hardware: All All
: P5 enhancement
Assignee: R-core
URL:
Depends on:
Blocks:
 
Reported: 2015-10-06 19:40 UTC by Philip Johnson
Modified: 2015-10-06 19:40 UTC (History)
0 users

See Also:


Attachments
patch to stripchart.R (3.42 KB, patch)
2015-10-06 19:40 UTC, Philip Johnson
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Philip Johnson 2015-10-06 19:40:52 UTC
Created attachment 1918 [details]
patch to stripchart.R

The attached patch implements a new method for stripchart plotting: "spread".

"Spread" acts similar to "jitter", except that it deterministically moves the points such that they do not overlap (whereas jitter does it stochastically and, as a result, points may still overlap).  This type of plot is commonly used in the biological sciences when the # of datapoints is too low for useful boxplots but too high to see points if overplotted/jittered.

I attach a patch against the current (5 Oct 2015) R-devel.  The patch also adds a "bg=" parameter to be analogous to "col=" for filled pchs.

If there is interest from r-core, I am happy to also patch the relevant help page.