filmov
tv
Draw Plot with Two Y-Axes in R (Example) | axis, plot, par, mtext, range & pretty Functions

Показать описание
R code of this video:
x <- rnorm(30)
y1 <- x + rnorm(30)
y2 <- x + rnorm(30, 5)
par(mar = c(5, 4, 4, 4) + 0.3) # Additional space for second y-axis
plot(x, y1, pch = 16, col = 2) # Create first plot
par(new = TRUE) # Add new plot
plot(x, y2, pch = 17, col = 3, # Create second plot without axes
axes = FALSE, xlab = "", ylab = "")
axis(side = 4, at = pretty(range(y2))) # Add second axis
mtext("y2", side = 4, line = 3) # Add second axis label
x <- rnorm(30)
y1 <- x + rnorm(30)
y2 <- x + rnorm(30, 5)
par(mar = c(5, 4, 4, 4) + 0.3) # Additional space for second y-axis
plot(x, y1, pch = 16, col = 2) # Create first plot
par(new = TRUE) # Add new plot
plot(x, y2, pch = 17, col = 3, # Create second plot without axes
axes = FALSE, xlab = "", ylab = "")
axis(side = 4, at = pretty(range(y2))) # Add second axis
mtext("y2", side = 4, line = 3) # Add second axis label
Excel - how to plot 2 vertical y-axes on a line graph
How to Plot Two Y-Axis in Origin
How To Add A Second Y Axis To Graphs In Excel
how to plot an excel chart with two y-axes
R Draw ggplot2 Plot with Two Y-Axes | Different Scale on Each Side | scale_y_continuous & sec_ax...
Draw Plot with Two Y-Axes in R (Example) | axis, plot, par, mtext, range & pretty Functions
How to make a Double-Y Plot using QtiPlot - Plot with two Y-axis
How to plot graph with two Y axes in matlab | Plot graph with multiple axes | MATLAB TUTORIALS
Class 9th EM MATHS Statistics
Double Y-Axis plot I Multi curve I Origin | VKMeV
How to plot two X Axis with two Y Axis in Excel
How to Make a Plot with Two X-axis and One Y-axis in Origin
How to Plot Two Y-Axis || multi y axis graph in origin||Origin Pro: How to draw double Y-axis graph
How to create double Y axis plot in Origin Software
How to plot double or multiple y-axis graph in origin
How to plot double y axis graph in Origin
How to plot two data sets of different scales in same graph in excel or Adding a Second Y axis
How to plot Multiple graph in single graph with Y-Offset in Origin pro
How To Plot an Excel Chart with Two X-Axes
Plot Multiple Lines in Excel
How to Plot Double Y-Axis Graph in MATLAB software complete step-by-step process I In English I
OriginPro - Plot a 2 Y-axis graph / Faire un graphe avec 2 axes des ordonnées
Plot Multiple Lines in Excel | How to graph Multiple lines in 1 Excel plot | line chart in excel
Grouped Column Indexed Plot with Double Y-Axis in Origin Pro
Комментарии