liupeng23的个人博客分享 http://blog.sciencenet.cn/u/liupeng23

博文

灰度图(闲来学习)

已有 2171 次阅读 2019-6-5 16:47 |系统分类:科研笔记

1.matlab:

fill1.m

fill2.m

fill3.m


2.R:

https://www.stat.auckland.ac.nz/~paul/RGraphics/examples-simonmatt.R



> # Distance Between Brownian Motions 布朗运动之间的距离

> n <- 100

> xx <- c(0:n, n:0)   #生成202个元素的向量,其中前面101与后面101数字对称

> yy <- c(c(0, cumsum(stats::rnorm(n))), rev(c(0, cumsum(stats::rnorm(n)))))

> plot   (xx, yy, type = "n", xlab = "Time", ylab = "Distance")

> polygon(xx, yy, col = "gray", border = "red")

Rplot.bmp

http://wap.sciencenet.cn/blog-651374-1126673.html


参考教程:ggplot2 Guide to Create Beautiful Graphics in R


3.PS




https://blog.sciencenet.cn/blog-3306552-1183246.html

上一篇:水文气象时间序列--变异检测
下一篇:交叉小波--小波相干(三变量探讨)
收藏 IP: 1.185.11.*| 热度|

0

该博文允许注册用户评论 请点击登录 评论 (0 个评论)

数据加载中...
扫一扫,分享此博文

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2024-5-11 05:49

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部