How can I plot with 2 different y-axes?

前端 未结 6 1261
遥遥无期
遥遥无期 2020-11-22 08:46

I would like superimpose two scatter plots in R so that each set of points has its own (different) y-axis (i.e., in positions 2 and 4 on the figure) but the points appear su

6条回答
  •  心在旅途
    2020-11-22 09:06

    As its name suggests, twoord.plot() in the plotrix package plots with two ordinate axes.

    library(plotrix)
    example(twoord.plot)
    

    enter image description here

    enter image description here

    enter image description here

    enter image description here

    enter image description here

提交回复
热议问题