Learn R Programming

ichimoku (version 1.5.5)

print.ichimoku: Print Ichimoku Objects

Description

Default print method for ichimoku objects to enable automatic plotting of the ichimoku cloud chart.

Usage

# S3 method for ichimoku
print(x, plot = TRUE, rows = 26L, ...)

Value

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.

Arguments

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 plot.ichimoku methods.

Details

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’.

Examples

Run this code
cloud <- ichimoku(sample_ohlc_data, ticker = "TKR")

print(cloud)
print(cloud, plot = FALSE, rows = 20L)

Run the code above in your browser using DataLab