Is it possible to create a visual correlation map wit numerical and categorical variables?
For example with this values:
val1 <- rep(c(1:2),5)
val2 <- rep(c('a','b'),5)
val3 <- paste(val1,val2)
val4 <- c(1:10)^2
val5 <- paste('x',val4)
Following on the question here I can do see the correlation as a table like:
table(val1,val2)
table(val1,val3)
etc...
This somehow helps, but I'm looking to produce something like a correlation map.
Also, there is a problem as it works between numeric & categorical and categorical & categorical, but it doesn't work with numeric & numeric, like table(val1,val4).
Does anyone has an example of how to achieve a visual correlation representation for mixed numerical & categorical variables?