r - 使用给定两个向量的条件在 R 图上绘制曲线
问题描述
给定以下空图:
plot(1, type="n", xlab="x1", ylab="x2", xlim=c(0, 10), ylim=c(0, 10), axes = F)
axis(1, seq(0,10,1), pos = 0)
axis(2, seq(0,10,1), pos = 0)
lines(x = c(0,10), y = c(10,10))
lines(x = c(10,10), y = c(0,10))
我想绘制一条平滑曲线,其中 x1*x2 = 38,假设 x1 和 x2 都在 0 和 10 之间。
我可以使用什么样的功能来实现这一点?
解决方案
推荐阅读
- gulp - 为 Bootstrap、SASS 和 BrowserSync 设置 Gulp 4
- python-3.x - python用cv2拍照-脏图片
- perl - 如何在不干扰格式的情况下对数字进行排序
- python - 使用二进制信息有效地保存 4D 数组
- reactjs - 如何在 Next.js 中执行客户端数据获取
- mysql - Mysql INNER JOIN 在 LEFT OUTER JOIN 之后
- android - 在 Flutter 和 iOS 中使用可变主机进行深度链接
- sql - 如何将此使用连接语句的查询转换为使用子查询的查询?
- java - 在 Spring Boot 中检索 bean?
- python - 为什么 1//0.01 == 99 在 Python 中?