print.ichimoku | R Documentation |
Default print method for ichimoku objects to enable automatic plotting of the ichimoku cloud chart.
## S3 method for class 'ichimoku'
print(x, plot = TRUE, rows = 26L, ...)
x |
an object of class ‘ichimoku’. |
plot |
[default TRUE] set to FALSE to prevent automatic plotting of the ichimoku cloud chart. |
rows |
[default 26L] integer number of rows to print. |
... |
additional arguments passed along to the xts print and
|
This function is an S3 method for the generic function print() for class ‘ichimoku’. It can be invoked by calling print(x) on an object ‘x’ of class ‘ichimoku’.
The ichimoku object supplied (invisibly). The data is printed to the console. The ichimoku cloud chart is also output to the graphical device depending on the parameters set.
cloud <- ichimoku(sample_ohlc_data, ticker = "TKR")
print(cloud)
print(cloud, plot = FALSE, rows = 20L)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.