Line Chart

This tutorial shows how to configure and customize a Line Chart layer into ZENPLOT® for your future visualizations.


Do you want to try ZENPLOT® out? You can Download the trial version at any time!

1. Dataset

In this tutorial, we use the dataset Orange, which corresponds to the evolution of the growth of orange trees. It contains 35 observations, described by 3 variables :

  • Tree, qualitative variable: the tree ID number
  • age, quantitative variable: the age of the tree
  • circumference, quantitative variable: the trunk circumferences

Sources:

Draper, N. R. and Smith, H. (1998), Applied Regression Analysis (3rd ed), Wiley (exercise 24.N). Pinheiro, J. C. and Bates, D. M. (2000) Mixed-effects Models in S and S-PLUS, Springer.

2. Configure a Line Chart into ZENPLOT®

To create a Line Chart layer, click on Add a layer and select the Line Chart layer.

Tutorial Line Chart step 1 Tutorial Line Chart step 2

Each observation of the dataset corresponds to a node, according to the associated X and Y coordinates. All of these nodes will be connected by segments, constituting the Line Chart. A group variable can be entered by the user, thus allowing to link characteristics to this variable.

You must enter:

  • The dataset you want to use (here, Orange)
  • The variable corresponding to the X coordinates: a quantitative or qualitative variable
  • The variable corresponding to the Y coordinates: a quantitative variable
  • The variable corresponding to the groups (optional): a qualitative variable

Tutorial Line Chart step 3

3. Customize a Line Chart layer in ZENPLOT®

Once the Line Chart layer is created, different options are available in the options bar.

You can choose two ways to customize the characteristic of an element:

By imposing a uniform style on all elements

In this case, all the lines of the layer will have the same style applied for that characteristic (same type, same width, or same color).

Tutorial Line Chart step 4

By binding the characteristic to a variable in the dataset

In this case, all the lines on the layer will have a different style for that characteristic depending on the value they take for the linked variable.

For the Line Chart layer, only the group variable can be linked to a characteristic.

The group variable being qualitative, a style must be chosen for each category of the variable.

Tutorial Line Chart step 5

3.1 Layer setting

You can reconfigure your layer at any time (change datasets, variables, etc.)

Tutorial Line Chart step 6

3.2 Border options

3 border options are available:

  • Thickness
  • Type
  • Color

Tutorial Line Chart step 7 Tutorial Line Chart step 8 Tutorial Line Chart step 9