DS4PS / cpp-529-spr-2021

Course shell for CPP 529 Community Analytics
http://ds4ps.org/cpp-529-spr-2021/
2 stars 0 forks source link

Lab 5 - # correlation plots #13

Closed AhmedRashwanASU closed 3 years ago

AhmedRashwanASU commented 3 years ago

While Running below chunk I'm getting errors, not sure what I'm missing here >

Error : Error in pairs.default(d5, upper.panel = panel.cor, lower.panel = panel.smooth) : object 'panel.cor' not found


# create subset to visualize in correlation matrix 
d2 <- select( d, mhv.growth, p.vacant,  p.prof,  pov.rate, p.unemp )

# reduce data density for visualization
set.seed( 1234 )
d3 <- sample_n( d2, 10000 ) %>% na.omit()

# correlation plots
pairs( d3, upper.panel=panel.cor, lower.panel=panel.smooth )
AhmedRashwanASU commented 3 years ago

I Think was missing to run the Helper functions for the pairs() correlation table. DONE