摘要: 1. 普通plot 准备数据。 x<-seq(0,2*pi,0.05) y<-sin(x) z<-cos(x) data<-data.frame(x,y,z) plot: plot(x,y) lines(x,z) 可用其他参数设置线型,坐标轴标签等,但是图例绘制不方便。 2. 手动 DataSet1 阅读全文
posted @ 2020-03-12 19:15 叮叮当当sunny 阅读(1330) 评论(0) 推荐(0) 编辑
摘要: 电力电子技术王兆安 刘进军 主编 机械工业出版社 阅读全文
posted @ 2020-03-12 17:54 叮叮当当sunny 阅读(358) 评论(0) 推荐(1) 编辑
摘要: 电力电子技术王兆安 刘进军 主编 机械工业出版社 阅读全文
posted @ 2020-03-12 17:32 叮叮当当sunny 阅读(332) 评论(0) 推荐(0) 编辑
摘要: 记录一个容易犯错的地方。 用chr标记的0~1变量可以变为整数0和1, 而用因子factor标记的变量转换为整数时总是从1开始。 如果不注意区分就会发生令自己困惑的错误。 阅读全文
posted @ 2020-03-12 13:28 叮叮当当sunny 阅读(2153) 评论(0) 推荐(0) 编辑
摘要: 图源于电力电子课本65页——电容滤波的单相不可控整流电路。 f<-function(w,d) { l<-w/sqrt(w^2+1)*exp(-atan(w)/w)*exp(-d/w) r<-sin(d) return(l-r) } w<-seq(0.01,60,0.01) d<-rep(0,leng 阅读全文
posted @ 2020-03-12 13:18 叮叮当当sunny 阅读(425) 评论(0) 推荐(0) 编辑
摘要: plotmath plotmath {grDevices}:Mathematical Annotation in R # Copyright (C) 2002-2016 The R Core Team require(datasets) require(grDevices); require(gra 阅读全文
posted @ 2020-03-12 12:57 叮叮当当sunny 阅读(422) 评论(0) 推荐(0) 编辑