2014-08-29 1 views

답변

0

실제로는 테이블이 아니지만 legend 함수를 사용할 수 있습니다.

color.df = read.table(text="name color 
    a  '#E41A1C' 
    b  '#AA3B50' 
    c  '#705C83'", header=T) 

#blank plot 
plot(1, type="n", axes=F, xlab="", ylab="") 

legend("center", fill=color.df$color, legend=color.df$name, cex=5) 

enter image description here

: 빈 플롯과 함께 예를 들어 아래
관련 문제