Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

chart.Scatter

wrapper to draw scatter plot with sensible defaults


Description

Draws a scatter chart. This is another chart "primitive", since it only contains a set of sensible defaults.

Usage

chart.Scatter(
  x,
  y,
  reference.grid = TRUE,
  main = "Title",
  ylab = NULL,
  xlab = NULL,
  xlim = NULL,
  ylim = NULL,
  colorset = 1,
  symbolset = 1,
  element.color = "darkgray",
  cex.axis = 0.8,
  cex.legend = 0.8,
  cex.lab = 1,
  cex.main = 1,
  ...
)

Arguments

x

data for the x axis, can take matrix,vector, or timeseries

y

data for the y axis, can take matrix,vector, or timeseries

reference.grid

if true, draws a grid aligned with the points on the x and y axes

main

set the chart title, same as in plot

ylab

set the y-axis label, as in plot

xlab

set the x-axis label, as in plot

xlim

set the x-axis limit, same as in plot

ylim

set the y-axis limit, same as in plot

colorset

color palette to use, set by default to rational choices

symbolset

from pch in plot, submit a set of symbols to be used in the same order as the data sets submitted

element.color

provides the color for drawing chart elements, such as the box lines, axis lines, etc. Default is "darkgray"

cex.axis

The magnification to be used for axis annotation relative to the current setting of 'cex', same as in plot.

cex.legend

The magnification to be used for sizing the legend relative to the current setting of 'cex'.

cex.lab

The magnification to be used for x- and y-axis labels relative to the current setting of 'cex'

cex.main

The magnification to be used for the main title relative to the current setting of 'cex'.

...

any other passthru parameters

Note

Most inputs are the same as "plot" and are principally included so that some sensible defaults could be set.

Author(s)

Peter Carl

See Also

Examples

## Not run: 
  data(edhec)
  chart.Scatter(edhec[,1],edhec[,2])

## End(Not run)

PerformanceAnalytics

Econometric Tools for Performance and Risk Analysis

v2.0.4
GPL-2 | GPL-3
Authors
Brian G. Peterson [cre, aut, cph], Peter Carl [aut, cph], Kris Boudt [ctb, cph], Ross Bennett [ctb], Joshua Ulrich [ctb], Eric Zivot [ctb], Dries Cornilly [ctb], Eric Hung [ctb], Matthieu Lestel [ctb], Kyle Balkissoon [ctb], Diethelm Wuertz [ctb], Anthony Alexander Christidis [ctb], R. Douglas Martin [ctb], Zeheng 'Zenith' Zhou [ctb], Justin M. Shea [ctb]
Initial release
2020-02-05

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.