【发布时间】:2013-08-20 18:35:42
【问题描述】:
我正在尝试使用库 ggplot2 绘制点图。我的脚本为下面的示例数据生成了一个点图,但我需要将点边框着色,但其余的点应该是空的(没有填充)。例如,如果我的点是红色、蓝色和绿色,我只想让点的边框是红色、蓝色和绿色,而其余的点应该是空的。
以下是我当前的脚本和示例数据
library(ggplot2)
File2=read.table("PB12_combo.txt", header=T, sep="\t")
ggplot(File2, aes(x_axis, y_axis, colour=factor(z_axis)))+geom_point(size=5)
x_axis y_axis z_axis
605 250 2
690 394 2
762 109 2
543 495 2
388 538 2
758 736 2
197 409 2
390 106 3
390 343 4
【问题讨论】: