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

Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X

GRAPHING HELP

ppal
17-Peridot

GRAPHING HELP

ppal_0-1639369282937.png

Thanks.

ACCEPTED SOLUTION

Accepted Solutions
ttokoro
20-Turquoise
(To:ppal)

Select plot-type's 4th one

image.png

View solution in original post

4 REPLIES 4
ttokoro
20-Turquoise
(To:ppal)

Select plot-type's 4th one

image.png

Werner_E
25-Diamond I
(To:ppal)

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

Werner_E_0-1639421489801.png

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.

Werner_E_1-1639421662026.png

 

 

LucMeekes
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

ppal
17-Peridot
(To:LucMeekes)

Hi

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

Announcements

Top Tags