Watts-College / cpp-529-spr-2022

https://watts-college.github.io/cpp-529-spr-2022/
0 stars 2 forks source link

Lab 3 Running The Chunks #9

Closed AmyTrumpower closed 2 years ago

AmyTrumpower commented 2 years ago

Hi: I understand the week 3 assignment is the word doc with the questions and the labels for the 8 clusters, but I thought we were also supposed to run the chunks in the RMD file in prep for next week. When I tried to run the file I had issues on the Load Phoenix Shapefile chunk starting on line 62.

# dorling cartogram of Phoenix Census Tracts
github.url <- "https://raw.githubusercontent.com/DS4PS/cpp-529-master/master/data/phx_dorling.geojson"
phx <- geojson_read( x=github.url,  what="sp" )
plot( phx )

Error in curl::curl_fetch_disk(x$url$url, x$disk, handle = x$url$handle) : schannel: failed to receive handshake, SSL/TLS connection failed

There may have been something I was supposed to do? Thanks, Amy

u12345 commented 2 years ago

@AmyTrumpower ,

Have you installed these packages? install.packages("geojsonio") install.packages("devtools") devtools::install_github("ropensci/geojsonio") library("geojsonio") library( sp ) # work with shapefiles library( sf ) # work with shapefiles - simple features format library( mclust ) # cluster analysis library( tmap ) # theme maps library( ggplot2 ) # graphing library( ggthemes ) library( dplyr ) library( pander )

Try to do name(phx) to see if you are getting any data before plot(phx).

Ujitha

AmyTrumpower commented 2 years ago

That seemed to work b/c I am seeing the cluster maps now. Thank you for your help!. Amy

u12345 commented 2 years ago

resolved.