gen_scale_transform_function: 生成从一个坐标轴到另一个坐标轴的转化函数

View source: R/gen_scale_transform_function.R

gen_scale_transform_functionR Documentation

生成从一个坐标轴到另一个坐标轴的转化函数

Description

建立两个坐标轴之间的映射,方便在 ggplot 上做双轴图

Usage

gen_scale_transform_function(x, y)

Arguments

x

两个数字组成的向量,且必须从小到大排列

y

两个数字组成的向量,且必须从小到大排列

Value

返回两个函数构成的列表

Author(s)

Liubianshi


liubianshi/lbs documentation built on Nov. 2, 2023, 11:06 a.m.