powered by
A line chart with dual axisSS
DualaxisLinechart(X, Y1, Y2, xlab = "X", y1lab = "Y1", y2lab = "Y2", main = "Dual Axis Line Chart",cols = c("black", "blue"), SaveIt = FALSE)
y1lab = "Y1", y2lab = "Y2", main = "Dual Axis Line Chart",
cols = c("black", "blue"), SaveIt = FALSE)
[1:n] vector, both lines require the same xvalues, e.g. the time of the time series, POSIXlt or POSIXct are accepted
POSIXlt
POSIXct
[1:n] vector of first line
[1:n] vector of second line
Optional, string for xlabel
Optional, string for first ylabel
Optional, string for second ylabel
Optional, title of plot
Optional, color of two lines
Optional, default FALSE; TRUE if you want to save plot as html in getwd() directory
getwd()
plotly object
plotly
enables to visualize to lines in one plot overlaying them using ploty (e.g. two time series with two ranges of values)
# NOT RUN { # # }
Run the code above in your browser using DataLab