Section 22 R Line Type: lty

22.1 Graphics Parameters

  • For detailed helps on graphics parameters: ?par
Function Explanation
main Title of the plot
ylab, xlab Labels for the y-axis and x-axis
ylim, xlim Limits for the y-axis and x-axis
type Plot type (points, lines, both, …),
pch Plot character (circles, dots, triangles, symbols, …)
cex Character expansion (size of plot characters)
lty Line type (solid, dots, dashes, …)
lwd Line width
col Colour of plot characters
las Orientation of the text on the tick marks

22.2 Line Type (lty)

  • The R line type (lty) can be specified using:
    • text: blank, solid, dashed, dotted, dotdash, longdash, twodash
    • number: 0, 1, 2, 3, 4, 5, 6
  • Hence, lty = solid is identical to lty = 1

22.3 R lty by Number & Text