print.plottedPandemicData: Print method for 'plottedPandemicData' objects

View source: R/print.plottedData.R

print.plottedPandemicDataR Documentation

Print method for plottedPandemicData objects

Description

The print method for a plottedPandemic S3 class object displays the single plot or both separated by a prompt for the user.

Usage

## S3 method for class 'plottedPandemicData'
print(x, ...)

Arguments

x

An object of S3 class plottedPandemicData-objects.

...

Currently unused.

Details

The plots generated by plot.pandemicData are displayed by this function If only one of the plots has been generated via the argument cases, then it is displayed in the Viewer windows as an html object, produced by the plot_ly function. If both new and cumulative plots are requested, then the new plot is displayed first and a message prompts the user to display the next plot, namely the cumulative one. The plot shows the confirmed cases and the deaths information, but if the user desire to see only one, he can double click on legend to isolate one trace. Consequently, the axis will be automatically configured to the scale of the desired trace. To see both again, the user just need to double click again.

Value

Returns x, invisibly.

See Also

load_covid and plot.pandemicData


PandemicLP documentation built on March 18, 2022, 6:22 p.m.