常用函数图像
2015-03-22 15:01
155 查看
1.
等高线图:
除非显式指定参数 surface = TRUE, 否则默认就是等高线图, npts 默认值为 50, 调高这个值可使颜色填充更细腻.
虽然很粗糙,但如果不填充颜色, 生成的图片也是够难看的,如:
不标出等高线的值
2.
3.
4.
plotFun(x^2/2+y^2/2 ~ x & y, x.lim=range(-10,10),y.lim=range(-10,10),surface = TRUE)
等高线图:
plotFun(x^2/2+y^2/2 ~ x & y, x.lim=range(-10,10),y.lim=range(-10,10),ntps=1000)
除非显式指定参数 surface = TRUE, 否则默认就是等高线图, npts 默认值为 50, 调高这个值可使颜色填充更细腻.
虽然很粗糙,但如果不填充颜色, 生成的图片也是够难看的,如:
plotFun(x^2+y^2 ~ x & y, x.lim=range(-40,40),y.lim=range(-40,40),filled = FALSE)
不标出等高线的值
plotFun(x^2+y^2 ~ x & y, x.lim=range(-40,40),y.lim=range(-40,40),nlevels = 20,labels = FALSE)
2.
plotFun(sin(2*pi*t/10)*exp(-.2*x) ~ t & x,t.lim=range(0,20),x.lim=range(0,10),surface = TRUE)
3.
plotFun(-x^2+y^2-10 ~ x & y, x.lim=range(-5,5),y.lim=range(-5,5),surface = TRUE)
4.
c = makeFun(1-x^2-y^2 ~ x & y) #optimize(c,c(10,-10)) plotFun(c(x,y) ~ x & y, x.lim=range(-5,5),y.lim=range(-5,5),surface = TRUE)
相关文章推荐
- PHP GD 图像处理组件的常用函数总结
- OpenCV 之图像篇 常用函数
- 常用函数_图像处理_OpenCV(2)
- opencv常用图像处理函数(C版本)
- 【OpenCV】图像处理和图像识别中常用的OpenCV函数汇总
- OpenCV 图像处理常用函数
- OpenCV图像处理和图像识别常用函数
- OpenCV图像处理和图像识别常用函数
- 图像处理matlab工具箱常用函数
- Matlab图像处理常用基本函数
- Matlab 常用图像函数(一)
- 图像处理和图像识别中常用的OpenCV函数
- Matlab 常用的图像处理函数
- 图像处理_常用函数_OpenCV
- opencv常用图像处理函数
- Matlab图像处理常用函数
- 图像处理和图像识别中常用的OpenCV函数2
- Matlab 常用图像函数
- OpenCV 图像处理常用函数(转)
- Matlab图像处理常用基本函数