[英]Is there any function in R that gives the labels inside the circles of a scatter plot?
我試圖創建一個散點圖,其中標簽嵌入在帶有 ggplot 的圓圈內。 有什么功能可以在圓圈內標記嗎?
提前致謝。
如果您想要圓圈內的文本,只需繪制圓圈,然后在同一位置繪制文本:
df <- data.frame(x = runif(26), y = runif(26), z = LETTERS) ggplot(df, aes(x, y, label = z)) + geom_point(size = 10, shape = 21, fill = "white") + geom_text(vjust = 0.4)
geom_label()怎么ggplot2 :
geom_label()
ggplot2
library(ggplot2) ggplot(mtcars, aes(wt, mpg, label = rownames(mtcars))) + geom_label()
[英]rotate the labels for a scatter plot in R
[英]Scatter plot Text labels in R
[英]point labels in R scatter plot
[英]Scatter plot with labels instead of numbers on axis in R
[英]How to set labels in the scatter plot in R?
[英]How to place circles around specific data points on a scatter plot in R?
[英]Plot function line on scatter plot R
[英]How to Create Scatter plot inside the Circle in R
[英]Add labels to scatter plot
[英]Fix overlapping nodes and nodes labels in scatter plot in R
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.