gpt4 book ai didi

r - r 中的数字点字符未完全显示

转载 作者:行者123 更新时间:2023-12-05 03:19:34 25 4
gpt4 key购买 nike

enter image description here

上面是我用 x,y 坐标创建的简单图的图像。我已经将 pch = as.character(1:32) 传递到情节中,但是在前 9 个字符之后,它会截断第二个字符。你如何解决这个问题?我想我需要增加每个点的宽度?

谢谢!

最佳答案

您可以像这样使用带有参数 labeltext:

df <- data.frame(x = c(rep(1:5, each = 5)),
y = c(rep(1:5, 5)))

plot(df$x, df$y, type='n')
text(df$x, df$y, label = 1:25)

创建于 2022-08-21 reprex v2.0.2

关于r - r 中的数字点字符未完全显示,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/73433130/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com