chartSentiment: Chart Sentiment Chart (stock) sentiment using quantmods...

Description Usage Arguments Author(s) See Also

Description

Chart Sentiment Chart (stock) sentiment using quantmods plotting capabilities. Some hopefully useful presets have been made.

Usage

1
2
3
4
chartSentiment(xts, prefix = "SEMNT", sentname = paste(prefix, "polarity",
  sep = "."), volname = paste(prefix, "vol", sep = "."), volcolor = "blue",
  na.fill = TRUE, omit.na.leading = TRUE, type = "line",
  theme = "white", name, TA = "", postTA = "", ...)

Arguments

xts

XTS Object Containing at minimum 'Close' and 'Score' fields

prefix

prefix of sentiment field, defaults to "SEMNT"

sentname

name of sentiment score field, defaults to paste(prefix,"polarity", sep = ".")

volname

name of sentiment volume field, defaults to paste(prefix,"volume", sep = ".")

volcolor

Color of Sentiment Score Volume Bars, defaults to "blue"

na.fill

should parts of timeseries be plotted where sentname or volname in xts is NA? Could be useful if Sentiment score/volume have been aggregated or data is very sparse. Please note that timeseries then becomes compressed, defaults to TRUE

omit.na.leading

Omits leading NA's in timeseries, defaults to TRUE

type

linetype of Stock Chart, defaults to "line",

theme

Chart Theme, defaults to "white"

name

Main Title of Sentiment Chart, default is taken from prefix in time series

TA

add Technical analysis Indicators to chart at the beginning as string, defaults to ""

postTA

add Technical analysis Indicators at the end to the chart, defaults to ""

...

additional parameters to chartSeries function call

Author(s)

Mario Annau

See Also

Most presets and optional arguments refer to quantmods excellent chartSeries function


mannau/tm.plugin.sentiment documentation built on May 21, 2019, 11:24 a.m.