Quantcast
Viewing all articles
Browse latest Browse all 4448

How to plot points over a given plot in R?

@sid100158 wrote:

I have data set in which I am trying to plot a location using latitude and longitude which is given in the data set. But when I am, trying to plot points with a particular condition I am not able to see my previous plot.

boston = read.csv("boston.csv")
str(boston)
plot(boston$LON, boston$LAT)
points(boston$LON[boston$CHAS==1], boston$LAT[boston$CHAS==1], col="blue", pch=19)

I want to know how I can plot the points over a given plot.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4448

Trending Articles