首页 > 其他分享 >R语言中绘制弧形箭头并添加文字

R语言中绘制弧形箭头并添加文字

时间:2024-05-31 16:33:24浏览次数:18  
标签:## 箭头 添加 弧形 绘制 2.6

 

001、测试01

library(ggplot2)

ggplot(data.frame(x = c(1, 3), y = c(1, 3)), aes(x = x, y = y)) +
  geom_point() +
  geom_curve(aes(x = 1.5, y = 2.5, xend = 2.6, yend = 2.6),          ## 绘制弧形箭头
             curvature = 0.3,  size = 5, col = "red",
             arrow = arrow(length = unit(0.3, "inches"),
                           ends = "both"),
             lineend = "round") +
annotate("text", x = 2.0, y = 2.5, label = "Siberian ibex",          ## 添加文字
         colour = "black", size = 10 )

 

。 

 

标签:##,箭头,添加,弧形,绘制,2.6
From: https://www.cnblogs.com/liujiaxin2018/p/18224800

相关文章

  • Python使用Matplotlib和Seaborn绘制箱线图
    目录一、箱线图定义二、Matplotlib与Seaborn简介三、绘制箱线图的样例数据四、Python绘制箱线图4.1Matplotlib绘制箱线图4.2Seaborn绘制箱线图五、参考文献一、箱线图定义  箱形图(Boxplot),又称盒须图、盒式图、盒状图或箱线图,是一种用作显示一组数据分布情况的......
  • amCharts绘制关联饼图
    案例1代码案例<!DOCTYPEhtml><html><head><scriptsrc="https://cdn.amcharts.com/lib/5/index.js"></script><scriptsrc="https://cdn.amcharts.com/lib/5/percent.js"></script><scri......
  • amCharts绘制甜甜圈
    案例1代码案例<!DOCTYPEhtml><html><head><scriptsrc="https://cdn.amcharts.com/lib/5/index.js"></script><scriptsrc="https://cdn.amcharts.com/lib/5/percent.js"></script><scri......
  • amCharts绘制饼图
    案例1代码案例<!DOCTYPEhtml><html><head><scriptsrc="https://cdn.amcharts.com/lib/5/index.js"></script><scriptsrc="https://cdn.amcharts.com/lib/5/percent.js"></script><scri......
  • amCharts绘制带趋势线折线图
    代码案例<!DOCTYPEhtml><html><head><scriptsrc="https://cdn.amcharts.com/lib/5/index.js"></script><scriptsrc="https://cdn.amcharts.com/lib/5/xy.js"></script><scriptsrc=&qu......
  • amCharts绘制折线图尾部动画
    代码案例<!DOCTYPEhtml><html><head><scriptsrc="https://cdn.amcharts.com/lib/5/index.js"></script><scriptsrc="https://cdn.amcharts.com/lib/5/xy.js"></script><scriptsrc=&qu......
  • amCharts绘制折线图和柱状图混合
    代码案例<!DOCTYPEhtml><html><head><scriptsrc="https://cdn.amcharts.com/lib/5/index.js"></script><scriptsrc="https://cdn.amcharts.com/lib/5/xy.js"></script><scriptsrc=&qu......
  • amCharts绘制堆叠面积图
    代码案例<!DOCTYPEhtml><html><head><scriptsrc="https://cdn.amcharts.com/lib/5/index.js"></script><scriptsrc="https://cdn.amcharts.com/lib/5/xy.js"></script><scriptsrc=&qu......
  • amCharts绘制折线图比较
    代码案例<!DOCTYPEhtml><html><head><scriptsrc="https://cdn.amcharts.com/lib/5/index.js"></script><scriptsrc="https://cdn.amcharts.com/lib/5/xy.js"></script><scriptsrc=&qu......
  • 地质灾害风险地图:如何用GIS与Python绘制
    地质灾害是指全球地壳自然地质演化过程中,由于地球内动力、外动力或者人为地质动力作用下导致的自然地质和人类的自然灾害突发事件。由于降水、地震等自然作用下,地质灾害在世界范围内频繁发生。我国除滑坡灾害外,还包括崩塌、泥石流、地面沉降等各种地质灾害,具有类型多样、分......