如何在标准R图中调整图例?

时间:2011-04-09 16:12:47

标签: r

是否可以使用多个名称调整图例?

我正在使用这个

legend("topleft", legend=c("mm8_12598_altPromoter","mm8_1457_starngeSplice",
"mm8_148_atac_Intron","mm8_1599_altFinish","mm8_2646_altThreePrime",
"mm8_2953_retainedIntron","mm8_8308_cassette_exon","mm8_8645_bleeding_exon",
"mm8_altFivePrime_1404"), col=linecols, pch=15, bty="o")

1 个答案:

答案 0 :(得分:1)

根据您的描述,我假设您要调整位置。

尝试:

legend(x_position, y_position, legend=c("mm8_12598_altPromoter","mm8_1457_starngeSplice",
"mm8_148_atac_Intron","mm8_1599_altFinish","mm8_2646_altThreePrime",
"mm8_2953_retainedIntron","mm8_8308_cassette_exon","mm8_8645_bleeding_exon",
"mm8_altFivePrime_1404"), col=linecols, pch=15, bty="o")

你可以玩这些值,直到你得到它为止。