Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #6859
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!nx02.iad01.newshosting.com!newshosting.com!news-out.readnews.com!transit3.readnews.com!newspump.sol.net!posts.news.twtelecom.net!nnrp2.twtelecom.net!not-for-mail |
|---|---|
| From | Scott Colwell <srcolwell@gmail.com> |
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Problem with Coding for Box Whisker Chart |
| Date | Thu, 1 Dec 2011 10:53:00 +0000 (UTC) |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Sender | steve@smc.vnet.net |
| Approved | Steven M. Christensen <steve@smc.vnet.net>, Moderator |
| Message-ID | <jb7mac$efj$1@smc.vnet.net> (permalink) |
| Lines | 40 |
| NNTP-Posting-Date | 01 Dec 2011 09:57:28 GMT |
| NNTP-Posting-Host | 4e7ecf3a.news.twtelecom.net |
| X-Trace | DXC=XUn456IGY82W[jR]`SmaB6C_A=>8kQj6=m^eQlV`f187YCG^DNIn^L3EFiONJ7[Go6SI@=[;]d1d5 |
| X-Complaints-To | abuse@twtelecom.net |
| Xref | x330-a1.tempe.blueboxinc.net comp.soft-sys.math.mathematica:6859 |
Show key headers only | View raw
Hello. I wonder if you could help me with the following issues I am
having with the BoxWhiskerChart syntax. I can not seem to get the
hang of this coding. What I am trying to do is this:
(1) I would like to have 2 boxplots (Group A and Group B) that are
each controlled by their own locators which are positioned next to
them. I can get 1 plot to work, but can't get a second one within the
same.
(2) I can't seem to change the median style function to have the
median represented as a thick black line.
(3) For some reason, the 75th percentile comes up as a fraction rather
than a number.
Here is the code that I have thus far.
Manipulate[
BoxWhiskerChart[
{Min[#], Quartiles[#][[1]], Median[#], Quartiles[#][[3]], Max[#]} &@
loc[[All, 2]],
BaseStyle -> {Medium, FontFamily -> "Arial"},
PlotRange -> {{0, 2}, {0, 100(*fixes max*)}},
PlotRangePadding -> .5,(*0 fixes locators to y axis*)
ImageSize -> Large,
FrameLabel -> {"Group A", "Number of Text Messages"},
PlotLabel -> Style["Interactive Boxplot", Bold, 20],
Frame -> {True, True, False, False},
ChartStyle -> Blue],
{
{loc, {
{0, 13}, {0, 21}, {0, 22}, {0, 31}, {0, 35}, {0, 39}, {0, 42}, {0,
43}, {0, 46},
{0, 46}, {0, 47}, {0, 48}, {0, 50}, {0, 51}, {0, 58}, {0, 60}, {0,
67}, {0, 70}, {0, 79}}},
{0, 2}, {0, 90(*fixes max*)}, Locator}
]
Thank you in advance
Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread
Problem with Coding for Box Whisker Chart Scott Colwell <srcolwell@gmail.com> - 2011-12-01 10:53 +0000
csiph-web