服务热线
178 0020 3020
hw2.1 <- read.table(file ="data/R2-1-1.csv", sep = ",", header = TRUE)
hw2.2 <- read.table(file ="data/R2-1-2.csv", sep = ",", header = TRUE)
#load package
library(ggplot2)
#graph 1
ggplot(hw2.1, aes(x = A, y = B, colour = SIZE), )+ geom_point()+
geom_point(shape=21,size = 4, fill="white") +
xlim(-2, 3) +
ylim(-1,3) +
ggtitle("R2-26-Leo") +
theme(panel.grid.major = element_blank(),
panel.grid.minor = element_blank(),
panel.border = element_blank(),
panel.background = element_rect(fill="white"),
axis.line = element_line(colour="black"))
#graph2
ggplot(hw2.2, aes(x = Time, y = value, colour = SIZE, shape = SIZE)) +
geom_line() +
ggtitle("R2-26-Leo") +
geom_point(size=2.5)+
theme(panel.grid.major = element_blank(),
panel.grid.minor = element_blank(),
panel.border = element_blank(),
panel.background = element_rect(fill="white"),
axis.line = element_line(colour="black"))
附件