当前位置:网站首页>R language drawing parameters (R language plot drawing)
R language drawing parameters (R language plot drawing)
2022-07-25 23:06:00 【Full stack programmer webmaster】
Hello everyone , I meet you again , I'm your friend, Quan Jun .
The experiment has been busy in the past month , I haven't written anything for a long time , I'm going to give you today amina drawing , So I learned a little R Basic drawing of language .ide
1.plot Function function
plot(x,y,xlim=c(0,100),ylim=c(0.4,1), type=”o”,lwd=2,col=2,pch=24,cex=1.5, yaxs=”i”,xaxs=”i”, xlab=”Sample Ration(%)”,ylab=”Accuracy”) Study
x,y : To draw x Axis contents and y Axis content spa
xlim,ylim: x Axis and y The scope of the shaft orm
type: Represents the shape of the graph , Yes. 、 Line 、 Dotted line 、 Ladder line, etc .htm
lwd: The width of the line blog
col: Color get
pch: The shape of the dot it
cex: Size of points
yaxs,xaxa: plot By default, a part of the coordinate space will be reserved when drawing , Set to “i” after , You can remove the reserved space
xlab,ylab:x Axis and y The name of the shaft
2. lines function
When you want to draw multiple lines in a graph , Can use this function
lines(LPPLPP~LPPx,col = “blue”,type = “o”,lwd = 2,pch=5)
3.grid Add a grid to the graph
grid(nx=NA,ny=6,lwd=2)
nx,ny: respectively x and y Dotted line of direction , The duty of NA when , Not split in the corresponding direction ,ny=6 It means that you will y The axis is equidistant divided into 6 paragraph
4.abline
Add a line
abline(h=0.85,col=”black”,lty=1,lwd=2)
h: y Height in the axial direction
v: x Position of the shaft
5.legend
Add legend
legend(“bottomright”,legend=c(“AC Accuracy rate ”,”MI Normalized mutual information ”),col=c(“blue”,”red”),pch=c(5,24),lty=1)
“bottomright” : The location of the legend
legend: Content
lty: The type of wire
Publisher : Full stack programmer stack length , Reprint please indicate the source :https://javaforall.cn/127887.html Link to the original text :https://javaforall.cn
边栏推荐
- Mocha test
- Hj7 take approximate value
- Network Security Learning (16)
- 赋能合作伙伴,亚马逊云科技如何落地“扶上马,送一程”?
- Network Security Learning (XII) OSI and TCP
- 内存分页与调优,内核与用户空间
- Secure code warrior learning record (III)
- Recyclerview computehorizontalscrollextend computehorizontalscrollrange computehorizontalscroll for calculating the sliding distance
- Network security and level protection
- VisualBox启动虚拟机报错:The VM session was closed before any attempt to power it on.
猜你喜欢

The third experiment OSPF

Recyclerview computehorizontalscrollextend computehorizontalscrollrange computehorizontalscroll for calculating the sliding distance

Memory paging and tuning, kernel and user space

The fifth article in the series of radar Fundamentals: the function of radar modulation style

驱动板网线直连电脑共享网络配置

第二周学习:卷积神经网络

Sichuan cuisine menu (I)

技术美术百人计划学习笔记(2)--向量

Network Security Learning (16)

通用分页功能
随机推荐
[opencv] edge detection [API and source code implementation]
Websocket summary
SSH服务器CBC加密模式漏洞(CVE-2008-5161)
Secure code warrior learning record (II)
Kibana~ the process number cannot be found after kibana is started in the background
[paper notes] a meta reinforcement learning algorithm for causal discovery
What is the difference between bio, NiO and AIO?
Summary of common methods of string:
Tfrecord write and read
Hj9 extract non duplicate integers
Circle detection and line detection of PCL
Summary of my 2020 online summer camp
连续三年成为云AI服务领导者,亚马逊云科技做对了什么?
Secure code warrior learning record (IV)
[tensorflow] about seed
[tensorflow] 关于 seed
The difference between "= =" and equals
[PTA] 7-24 minimum fraction (15 points)
为啥谷歌的内部工具不适合你?
Single model common sense reasoning first surpasses human beings! HFL summit openbookqa challenge