StatLabStudent EditionUser guideGalleryFeaturesAbout

Line and area charts

Plots a count or mean across ordered categories (time points, Likert levels), one line per group; the area version stacks the groups.

Menu: Graphs → More charts → Line / area chart…

When should I use it?

What are the assumptions?

How do I run it in StatLab?

  1. Put the ordered variable on the category axis.
  2. Optionally choose a variable to average and a variable for separate lines.
  3. Choose Area to stack groups.

How do I read the output?

OutputMeaning
LinesOne per group; markers show each value (hover for n).

Worked example

On the practice survey dataset (File → Sample dataset), this command — which the dialog's Paste button also produces — runs the procedure:

PROC vizLine /x=group /y='' /color='' /kind=line /errorBars=none.

Computed by StatLab's validated procedure code when this page was built. The example only illustrates the steps; choose variables that fit your own research question.

What are common mistakes?

Open StatLab   All guide topics