Here we introduce line types and line widths in R. How to set the line type, and change the line width.
See also line charts, density plots and lines & segments.
Argument | Usage |
lty | Setting line type |
lwd | Setting line width |
col | Set line color |
In this section we show the main line types in R for use in plots like density plots and line charts.
This is set with the argument "lty", for example, lty = 1 or lty = "dashed". Options available include, "blank", "solid", "dashed", "dotted", "dotdash", "longdash", "twodash" and so on.
See examples below.
In this section we show how to set the line widths in R for use in plots like density plots and line charts plots.
This is set with the argument "lwd", for example, lwd = 1 or lwd = 3.
See examples below.
The feedback form is a Google form but it does not collect any personal information.
Please click on the link below to go to the Google form.
Thank You!
Go to Feedback Form
Copyright © 2020 - 2024. All Rights Reserved by Stats Codes