Sunday, August 23, 2020

plot (Index plot)

This is a two dimensional plot where the index (such as time) is the x variable, and the measured value is the y variable. Use an index plot when you want to plot ordered data against an increasing scale. Kern assumes that the increasing scale will be time.

You can use the generic plot function to create a index plot (the RcmdrMisc.indexplot is also available). The plot function offers 9 ways to display the data, from points to steps.

R Example

This example shows the changes in the depth of Lake Huron from 1875 to 1972, using a single line ("l") display.

plot(LakeHuron, type = "l")

graph of Lake Huron depths

Reference

No comments:

Post a Comment

Please help to combat malicious use of the Internet.