cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • JMP will suspend normal business operations for our Winter Holiday beginning on Wednesday, Dec. 24, 2025, at 5:00 p.m. ET (2:00 p.m. ET for JMP Accounts Receivable).
    Regular business hours will resume at 9:00 a.m. ET on Friday, Jan. 2, 2026.
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.

Discussions

Solve problems, and share tips and tricks with other JMP users.
%3CLINGO-SUB%20id%3D%22lingo-sub-240379%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%E5%A6%82%E4%BD%95%E7%82%BA%E9%95%B7%E6%A2%9D%E5%9C%96%E6%96%B0%E5%A2%9E%E5%B9%B3%E5%9D%87%E7%B7%9A%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-240379%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%E6%88%91%E6%AD%A3%E5%9C%A8%E5%98%97%E8%A9%A6%E5%B0%87%E5%B9%B3%E5%9D%87%E7%B7%9A%E6%B7%BB%E5%8A%A0%E5%88%B0%E6%A2%9D%E5%BD%A2%E5%9C%96%E4%B8%A6%E5%89%B5%E5%BB%BA%E9%A1%9E%E4%BC%BC%E6%96%BC%E4%B8%8B%E5%9C%96%E7%9A%84%E5%9C%96%EF%BC%9A%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22faraz_0-1578423804647.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22faraz_0-1578423804647.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22faraz_0-1578423804647.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F20870i5C530048D574B08E%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22faraz_0-1578423804647.png%22%20alt%3D%22faraz_0-1578423804647.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%E5%88%B0%E7%9B%AE%E5%89%8D%E7%82%BA%E6%AD%A2%EF%BC%8C%E6%88%91%E5%8F%AA%E8%83%BD%E7%B9%AA%E8%A3%BD%E6%A2%9D%E5%BD%A2%E5%9C%96%EF%BC%8C%E7%95%B6%E6%88%91%E6%B7%BB%E5%8A%A0%E9%A1%8D%E5%A4%96%E7%9A%84%E5%B9%B3%E5%9D%87%E5%80%BC%E5%88%97%E4%BB%A5%E6%B7%BB%E5%8A%A0%E5%88%B0%E5%9C%96%E4%B8%AD%E6%99%82%EF%BC%8C%E5%AE%83%E5%80%91%E5%B0%87%E8%A2%AB%E7%B9%AA%E8%A3%BD%E7%82%BA%E5%8E%9F%E5%A7%8B%E6%A2%9D%E5%BD%A2%E5%9C%96%E6%97%81%E9%82%8A%E7%9A%84%E9%A1%8D%E5%A4%96%E6%A2%9D%E5%BD%A2%E5%9C%96%EF%BC%8C%E4%B8%A6%E4%B8%94%E6%88%91%E4%B8%8D%E7%9F%A5%E9%81%93%E5%A6%82%E4%BD%95%E6%9B%B4%E6%94%B9%E6%A0%BC%E5%BC%8F%E9%80%99%E5%80%8B%E7%89%B9%E5%AE%9A%E7%9A%84%E6%95%B8%E6%93%9A%E9%9B%86%E3%80%82%20%E4%BB%BB%E4%BD%95%E5%B9%AB%E5%8A%A9%E8%A1%A8%E7%A4%BA%E8%AE%9A%E8%B3%9E%E3%80%82%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-240394%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%E5%9B%9E%E8%A6%86%EF%BC%9A%E5%A6%82%E4%BD%95%E5%9C%A8%E9%95%B7%E6%A2%9D%E5%9C%96%E4%B8%AD%E6%96%B0%E5%A2%9E%E5%B9%B3%E5%9D%87%E7%B7%9A%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-240394%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%E6%AF%AB%E4%B8%8D%E5%A5%87%E6%80%AA%EF%BC%8C%E9%A6%AC%E5%85%8B%E6%AF%94%E6%88%91%E5%85%88%E4%B8%80%E6%AD%A5%E3%80%82%20%E4%BD%86%E6%97%A2%E7%84%B6%E6%88%91%E5%B7%B2%E7%B6%93%E6%BA%96%E5%82%99%E5%A5%BD%E4%BA%86%E5%9B%9E%E6%87%89%EF%BC%8C%E9%80%99%E8%A3%A1%E6%9C%89%E5%8F%A6%E4%B8%80%E7%A8%AE%E6%96%B9%E6%B3%95%EF%BC%9A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%E5%9C%96%E5%BD%A2%20%26gt%3B%20%E5%9C%96%E5%BD%A2%E7%94%A2%E7%94%9F%E5%99%A8%E3%80%82%3C%2FP%3E%0A%3CP%3E%E5%B0%87%E9%9F%BF%E6%87%89%E6%8B%96%E6%9B%B3%E8%87%B3%20Y%20%E5%8D%80%E5%9F%9F%E3%80%82%3C%2FP%3E%0A%3CP%3E%E5%B0%87%E9%A1%9E%E5%88%A5%E8%AE%8A%E6%95%B8%E6%8B%96%E6%9B%B3%E8%87%B3%20X%20%E5%8D%80%E5%9F%9F%E3%80%82%3C%2FP%3E%0A%3CP%3E%E9%81%B8%E6%93%87%E6%A2%9D%E5%BD%A2%E5%85%83%E7%B4%A0%E3%80%82%3C%2FP%3E%0A%3CP%3E%E6%8C%89%E4%BD%8F%20Shift%20%E9%8D%B5%E4%B8%A6%E9%81%B8%E6%93%87%E7%B7%9A%E5%85%83%E7%B4%A0%E3%80%82%3C%2FP%3E%0A%3CP%3E%E5%9C%A8%E2%80%9C%E7%B7%9A%E2%80%9D%E5%B1%AC%E6%80%A7%E4%B8%AD%EF%BC%8C%E6%8C%89%E4%B8%80%E4%B8%8B%E2%80%9C%E8%AE%8A%E6%95%B8%E2%80%9D%E7%81%B0%E8%89%B2%E4%B8%89%E8%A7%92%E5%BD%A2%E4%B8%A6%E5%88%AA%E9%99%A4%E2%80%9CX%E2%80%9D%E9%A1%9E%E5%88%A5%E8%AE%8A%E6%95%B8%E7%9A%84%E8%A4%87%E9%81%B8%E6%A1%86%E3%80%82%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Capture.JPG%22%20style%3D%22width%3A%20557px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Capture.JPG%22%20style%3D%22width%3A%20557px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Capture.JPG%22%20style%3D%22width%3A%20557px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F20872iA841F229C177099E%2Fimage-dimensions%2F557x428%3Fv%3Dv2%22%20width%3D%22557%22%20height%3D%22428%22%20role%3D%22button%22%20title%3D%22Capture.JPG%22%20alt%3D%22Capture.JPG%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-240391%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%E5%9B%9E%E8%A6%86%EF%BC%9A%E5%A6%82%E4%BD%95%E5%9C%A8%E9%95%B7%E6%A2%9D%E5%9C%96%E4%B8%AD%E6%96%B0%E5%A2%9E%E5%B9%B3%E5%9D%87%E7%B7%9A%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-240391%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3E%E4%BD%A0%E6%83%B3%E8%A6%81%E9%80%99%E6%A8%A3%E7%9A%84%E6%9D%B1%E8%A5%BF%E5%97%8E%EF%BC%9F%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Capture.JPG%22%20style%3D%22width%3A%20712px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Capture.JPG%22%20style%3D%22width%3A%20712px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Capture.JPG%22%20style%3D%22width%3A%20712px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F20871i04FAF06959FB11B0%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Capture.JPG%22%20alt%3D%22Capture.JPG%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%E9%81%B8%E6%93%87%E5%9C%96%E5%BD%A2%20%26gt%3B%20%E5%9C%96%E5%BD%A2%E7%94%A2%E7%94%9F%E5%99%A8%E3%80%82%3C%2FLI%3E%0A%3CLI%3E%E5%B0%87%E5%8F%8D%E6%87%89%E6%8B%96%E6%9B%B3%E8%87%B3%20Y%20%E6%94%BE%E7%BD%AE%E5%8D%80%E5%9F%9F%E3%80%82%3C%2FLI%3E%0A%3CLI%3E%E5%B0%87%E9%A1%9E%E5%88%A5%E6%8B%96%E6%9B%B3%E8%87%B3%20X%20%E6%94%BE%E7%BD%AE%E5%8D%80%E5%9F%9F%E3%80%82%3C%2FLI%3E%0A%3CLI%3E%E9%81%B8%E6%93%87%E6%A2%9D%E5%BD%A2%E5%85%83%E7%B4%A0%E3%80%82%3C%2FLI%3E%0A%3CLI%3E%E5%8F%B3%E9%8D%B5%E9%BB%9E%E9%81%B8%E6%B8%85%E5%96%AE%E4%B8%AD%E7%9A%84%E5%9B%9E%E6%87%89%E8%B3%87%E6%96%99%E5%88%97%EF%BC%8C%E7%84%B6%E5%BE%8C%E9%81%B8%E6%93%87%E8%81%9A%E5%90%88%20%26gt%3B%20%E5%B9%B3%E5%9D%87%E5%80%BC%E3%80%82%3C%2FLI%3E%0A%3CLI%3E%E5%B0%87%E6%96%B0%E7%9A%84%E5%B9%B3%E5%9D%87%E5%9B%9E%E6%87%89%E5%88%97%E6%8B%96%E6%9B%B3%E5%88%B0%20Y%20%E5%88%BB%E5%BA%A6%E5%85%A7%E9%83%A8%E7%9A%84%E6%A1%86%E6%9E%B6%E4%B8%AD%E3%80%82%3C%2FLI%3E%0A%3CLI%3E%E5%8F%B3%E9%8D%B5%E9%BB%9E%E9%81%B8%20Y%20%E5%B0%BA%E5%BA%A6%E4%B8%A6%E9%81%B8%E6%93%87%E5%8F%B3%E7%A7%BB%20%26gt%3B%20%E5%B9%B3%E5%9D%87%E5%80%BC%E3%80%82%3C%2FLI%3E%0A%3CLI%3E%E5%8F%B3%E9%8D%B5%E9%BB%9E%E9%81%B8%E6%A2%9D%E5%BD%A2%E4%B8%A6%E9%81%B8%E6%93%87%E6%A2%9D%E5%BD%A2%E5%8F%B3%E5%81%B4%20%26gt%3B%20%E8%AE%8A%E6%9B%B4%E7%82%BA%20%26gt%3B%20%E7%B7%9A%E3%80%82%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar
faraz
Level I

How to add an average line to a bar plot

I am trying to add an average line to a bar plot and create a plot similar to the following picture:

faraz_0-1578423804647.png

 

So far I can only plot the bars and  when I am adding an extra column for average values to add to the plot, they will be plotted as an extra bar plot next to the original and I don't know how to change the format for this specific data set. Any help is appreciated. 

1 ACCEPTED SOLUTION

Accepted Solutions

Re: How to add an average line to a bar plot

Mark, not surprisingly, beat me to it. But since I had a response ready, here is another approach:

 

Graph > Graph Builder.

Drag response to Y zone.

Drag category variable to X zone.

Select the bar element.

Hold the shift key and select the Line element.

In the Line properties, click the Variables gray triangle and remove the checkbox for the X category variable.

 

Capture.JPG

Dan Obermiller

View solution in original post

2 REPLIES 2

Re: How to add an average line to a bar plot

Do you want something like this?

 

Capture.JPG

 

  • Select Graph > Graph Builder.
  • Drag response to Y drop zone.
  • Drag category to X drop zone.
  • Select the Bar element.
  • Right-click on response data column in list and select Aggregate > Mean.
  • Drag new Mean response column to frame just inside Y scale.
  • Right-click Y scale and select Move Right > Mean.
  • Right-click a bar and select Bar-right > Change to > Line.

 

Re: How to add an average line to a bar plot

Mark, not surprisingly, beat me to it. But since I had a response ready, here is another approach:

 

Graph > Graph Builder.

Drag response to Y zone.

Drag category variable to X zone.

Select the bar element.

Hold the shift key and select the Line element.

In the Line properties, click the Variables gray triangle and remove the checkbox for the X category variable.

 

Capture.JPG

Dan Obermiller

Recommended Articles