Hello,
On https://r-graph-gallery.com/line-chart-dual-Y-axis-ggplot2.html
you have a section entitled:
Adding a second Y axis with sec.axis(): the idea
and another section entitled:
Show 2 series on the same line chart thanks to sec.axis()
There is no sec.axis() function in R.
There is a function called sec_axis(). Note the underscore _, not a period
separating sec from axis.
You repeatedly refer to the non-existent sec.axis() on that page.
The sec.axis that you have on the page is a variable, the return value
from sec_axis().
Hello,
On https://r-graph-gallery.com/line-chart-dual-Y-axis-ggplot2.html
you have a section entitled:
Adding a second Y axis with sec.axis(): the idea
and another section entitled:
Show 2 series on the same line chart thanks to sec.axis()
There is no sec.axis() function in R.
There is a function called sec_axis(). Note the underscore _, not a period
separating sec from axis.
You repeatedly refer to the non-existent sec.axis() on that page.
The sec.axis that you have on the page is a variable, the return value
from sec_axis().