library ("ggplot2")
data(iris)
dim(iris)
head(iris)
summary (iris)
ggplot(iris,aes(x=Sepal.Length, y=Petal.Length))+geom_point()
ggplot(iris,aes(x=Sepal.Length, y=Petal.Length,col=Species,shape= Species))+geom_point()
ggplot(iris,aes(x=Sepal.Length, y=Petal.Length, col=Species))+geom_smooth()
ggplot(iris,aes(x=Sepal.Length, y=Petal.Length, col=Species))+geom_polygon()
ggplot(iris,aes(x=Sepal.Length, y=Petal.Length, col=Species))+geom_line()
ggplot(iris,aes(x=Sepal.Length, y=Petal.Length, col=Species))+geom_point(color="blue")+geom_smooth(color="red")
ggplot(iris,aes(x=Sepal.Length, y=Petal.Length, col=Species))+geom_point()+geom_smooth(se=FALSE)
ggplot(iris,aes(x=Sepal.Length, y=Petal.Length, col=Species))+geom_point(aes(col=Species))+geom_smooth(se=FALSE)

Embed on website

To embed this program on your website, copy the following code and paste it into your website's HTML: