Note that there are some explanatory texts on larger screens.

plurals
  1. POggmap not plotting all points on map from dataframe
    primarykey
    data
    text
    <p>The problem I am having is that every time I try to plot my points onto a map it seems to remove them.</p> <pre><code>#getmap library(ggplot2) library(ggmap) testmap &lt;- get_googlemap(c(lon=135,lat=-32) ,zoom=6, xlim=c(127,142), ylim=c(-23,-34)) save(testmap, file="test.rda") #Load file load(file="test.rda") #plot plotvar &lt;- c("V37","V39") plotdata &lt;- WellDownload[plotvar] #plotting ggmap(testmap) + geom_point(aes_string(x=plotdata$V37, y=plotdata$V39), data=plotdata, colour="red", size=3) </code></pre> <p><code>Removed 10001 rows containing missing values (geom_point).</code></p> <p>is the error I get, my database does have missing values but I don't understand why values are being removed.</p> <p>What I am aiming to do is to plot points on a map then later do an extrapolation of the data onto the maps based on the coords. I just wanted to find out why I was getting these errors, I have the txt file for the database but am not sure how to upload it.</p> <p>EDIT hopefully this should work <a href="https://www.dropbox.com/s/4rv52deuehyfn9l/WellDownload.txt" rel="nofollow">https://www.dropbox.com/s/4rv52deuehyfn9l/WellDownload.txt</a> here is the file</p> <p>Edit: I just tried a different method of accessing the data and its not removing rows anymore but says <code>"Discrete value supplied to continuous scale"</code>.</p> <pre><code>#load file load(file="e:/CameronFurness/xml_data/test.rda") #data mydata &lt;-data.frame(x&lt;-newdata[,"V37"],y&lt;-newdata[,"V39"],#lon= V37, lat=V39, col = NA_real_) #plot ggmap(testmap) + geom_point(aes(x, y), data=mydata, size=3, alpha=0.5, colour="red") </code></pre> <p><code>newdata</code> is a data frame I made with columns <code>V37</code> and <code>V39</code>. The coords I am using are in the file, they are <code>decimal_long</code> and <code>neg_decimal_lat</code>.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload