ggplot(data,aes(x,y,fill=factor(group)))+geom_point()
加个fill语句就可以了。另外,建议提问可以清晰点,比如dataset的变量名有哪些,具体遇到了何种问题