当前位置:网站首页>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
边栏推荐
- AI首席架构师12-AICA-工业生产过程优化场景下产业落地解析
- HJ9 提取不重复的整数
- [PTA] 7-24 minimum fraction (15 points)
- CMU AI PhD 第一年总结
- invalid syntax
- uvm_hdl——DPI在UVM中的实现(四)
- Check code generation
- Madness. Smbms (supermarket order management system)
- [paper notes] a meta reinforcement learning algorithm for causal discovery
- Take root downward, grow upward, and explore the "root" power of Huawei cloud AI
猜你喜欢

互联网协议之 IPFS

Mongodb features, differences with MySQL, and application scenarios

5 ROS仿真建模(3- rviz+gazebo+控制仿真机器人)

QVariant的使用

Session and cookie, token and storage

5 ROS simulation modeling (3-rviz+gazebo+ control simulation robot)

【自然语言处理】【向量表示】AugSBERT:改善用于成对句子评分任务的Bi-Encoders的数据增强方法

Memory paging and tuning, kernel and user space

【论文笔记】A Meta-Reinforcement Learning Algorithm for Causal Discovery

The fourth experiment nat
随机推荐
每周推荐短视频:需要协同的智能设备越来越多,给物联网开发提出更大挑战?
Unity 使用宏
CTS测试方法「建议收藏」
uvm_hdl——DPI在UVM中的实现(四)
Common software shortcuts
Recyclerview computehorizontalscrollextend computehorizontalscrollrange computehorizontalscroll for calculating the sliding distance
Network Security Learning (16)
Hj7 take approximate value
Madness. Smbms (supermarket order management system)
[opencv] edge detection [API and source code implementation]
Summary of common methods of string:
Sichuan cuisine menu (I)
Session and cookie, token and storage
Kibana~ the process number cannot be found after kibana is started in the background
Analysis of the influence of ESM direction finding error on positioning error
Understanding of forward proxy and reverse proxy
[natural language processing] [vector representation] augsbert: improve the data enhancement method of Bi encoders for paired sentence scoring tasks
[paper notes] robot dynamic tracking and grasping method based on online prediction and planning
Simulink学习笔记(三)——Simulink自动代码生成(二)「建议收藏」
IPFs of Internet Protocol