Scatter Plots


The training stress score (TSS) is used to quantify cycling workout based on relative intensity and duration of the workout. Work (measured in kilojoules) is the actual work done during the cyclists workout. The following R commands create a scatter plot of work verses TSS.

To use R in a Sage cell, the language must be set to R. See for details.

Sage Cell


work <- c(557, 1227, 337, 2073, 388, 1647, 348, 1241, 1583, 349, 1155)
tss <- c(40, 107, 25, 178, 29, 139, 21, 119, 144, 23, 97) 


Primary Tags: statistics

Secondary Tags: regression, scatter plot

Related Cells



Author: T. Judson

Date: 21 Jul 2017 08:55

Submitted by: Tom Judson

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License