![]() lines) accept a vector of values that are recycled. Options that specify colors include the following.ĭefault plotting color. Line width relative to the default (default=1). This is particularly useful for reference lines, axes, and fit lines. You can change lines using the following options. For symbols 21 through 25, specify border color (col=) and fill color (bg=). Use the pch= option to specify symbols to use when plotting points. Magnification of subtitles relative to cex Magnification of x and y labels relative to cex Magnification of axis annotation relative to cex Number indicating the amount by which plotting text and symbols should be scaled relative to the default. The following options can be used to control text and symbol size in graphs. The remainder of this section describes some of the more important graphical parameters that you can set. plot, hist, boxplot) to determine which graphical parameters can be set this way. See the help for a specific high level plotting function (e.g. # Set a graphical parameter within the plotting function In this case, the options are only in effect for that specific graph. Hist(mtcars$mpg) # create a plot with these new settingsĪ second way to specify graphical parameters is by providing the optionname= value pairs directly to a high level plotting function. Opar <- par() # make a copy of current settings The format is par( optionname= value, optionname= value. If you set parameter values here, the changes will be in effect for the rest of the session or until you change them again. One way is to specify these options in through the par( ) function. You can customize many features of your graphs (fonts, colors, axes, titles) through graphic options. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |