I have a numeric data frame call A, and I want to make a graph for every two variables (columns) of A.
My try:
x <- unlist(lapply(D, is.numeric))
A <- D[,x]
for(i in (1:ncol(A)))
{
for(j in (1:ncol(A)))
{
ggplot(algas, aes(x = A[,i], y = A[,j])) +
geom_point()
}
}
But is not plotting anything. I'm not sure if it's necessary to save each plot in a vector and then plot them with another for. Any suggestions would be great!















