cancel
Showing results for
Did you mean:
cancel
Showing results for
Did you mean:

Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X

17-Peridot

## GRAPHING HELP

Thanks.

1 ACCEPTED SOLUTION

Accepted Solutions
20-Turquoise
(To:ppal)

Select plot-type's 4th one

4 REPLIES 4
20-Turquoise
(To:ppal)

Select plot-type's 4th one

24-Ruby V
(To:ppal)

Additionally to using the stem plot as suggested by ttokoro, you may also consider adding some kind of shading/hatch:

Instead of using the stemplot you may also create a matrix with the points you want to be connected and plot the appropriate columns. This is more versatile especially when some day not every vertical line should end at the x-axis. Furthermore using this method I had less problems placing the shade underneath the vertical lines.

23-Emerald III
(To:ppal)

Maybe you have to explain what you mean with 'overshoot'...

If you mean you want the red and yellow bars to stop their top at the black bell-curve, then you have to change the expressions for these traces, e.g. like ttokoro did.

You now have x running from at least -6 to 14. The red trace covers all dnorm(x,mu,sigma) values along the vertical over that range of x, that is from near zero, to mu. The horizontal range of the red trace is determined  by mu+sigma, that is a single value. Thus you get a vertical bar from near zero to mu, at x=mu+sigma. Likewise for the yellow trace, except that it is set at x=mu-sigma.

Ttokoro used a different expression for the red trace: only a single point is defined: dnorm(mu+sigma, mu, sigma), that is, instead of ranging from at least -6 to 14, the first parameter to the dnorm function is limited to just: mu+sigma. So the red trace is determined by just a single point; to get a vertical bar, the stem type of trace is used.

Hope this helps.

Success!
Luc

17-Peridot
(To:LucMeekes)
Hi

I can work with what ttokoro did.
[image: image.png]
Thanks Luc.

Announcements
Top Tags