1
plotrix
패키지의 radial.plot
기능을 사용하여 샘플이 다양한 카테고리에 얼마나 잘 들어 맞는지 그래프를 작성했습니다. 아래의 예를 들면 결과는 다음과 같습니다방사형 플롯에서 선을 옵셋하는 방법은 무엇입니까?
못생긴 해결 방법. 지금까지 답을 찾지 못했습니다
: 내가 뭘하고 싶은까지이 모의에서 서로 약간 선을 상쇄한다. 어떤 도움이 필요합니까?
library(RColorBrewer)
library(plotrix)
library(scales)
m <- matrix(0, 5, 5)
m[1,1] <- 10
m[2,1] <- 12
m[5,2] <- 15
m[2,3] <- 20
m[4,4] <- 12
m[3,5] <- 17
colors <- brewer.pal(nrow(m), "Dark2")
pdf(file = "overview-plot.pdf", width = 14, height = 10)
par(cex.axis=2)
radial.plot(m,
labels=c("A", "B", "C", "D", "E"),
radlab = FALSE,
mar = c(11,8,11,8),
cex = 2,
label.prop = 1.3,
rp.type="rs",
lty = 1,
lwd = 5,
start = 0.65,
show.grid.labels=0,
point.symbols=19,
point.col=alpha(colors, 0.8),
line.col=alpha(colors, 0.5),
boxed.radial = FALSE,
show.radial.grid = FALSE,
radial.lim=c(0,max(m)),
grid.bg = "#f0f0f0")
legend(
24,8,
c(1:5),
col=colors,
lty=1,
lwd=5,
bty = "n",
title = "Samples",
cex = 2)
dev.off()
정말 감사합니다, 이것은 나를 위해 속임수를 썼는지! –