View source: R/exposuresTseries.R
exposuresTseries | R Documentation |
Plot the time series plot of returns and style exposures of the data.
exposuresTseries(
data,
tickers = NULL,
which.exposures = c("SIZE", "P2B", "ENTVAL"),
plot.returns = TRUE,
axis.cex = 1,
plot.type = "b",
...
)
data |
Dataframe with time series of style exposures and returns |
tickers |
character or vector of characters of Ticker symbols |
which.exposures |
exposures to plot |
plot.returns |
Logical. If 'TRUE', returns are also plotted along with the exposures. |
axis.cex |
numeric value to control the size of axis labels |
plot.type |
character defining the type of plot. Default is 'b' |
... |
other optional arguments |
Time series plots
Avinash Acharya
data("factorDataSetDjia5Yrs")
#One ticker with returns plot and one exposure
tickers = "BAC"
exposuresTseries(factorDataSetDjia5Yrs,tickers = tickers,which.exposures = "MKTCAP")
#Multiple Tickers without returns and all exposures.
tickers = c("AA", "BAC", "IBM")
exposuresTseries(factorDataSetDjia5Yrs,tickers = tickers,plot.returns = FALSE)
#Multiple tickers With returns
exposuresTseries(factorDataSetDjia5Yrs,tickers = tickers,plot.returns = TRUE, axis.cex = 0.8,
plot.type="b")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.