problem with Performance plot

Hello guys,
Can someone me expliain why Performance Analytics package function chart.Correlation is not working with the iris dataset, i created an iris numeric set with lapply and is.numeric
thanks
Nobel

Can you show us what you are doing? We really need to see your code plus any error or warnings you are receiving.

Please copy the code and paste it here between

```

```

This gives us formatted code that we can copy, paste and run .

The code i used

PerformanceAnalytics::chart.Correlation(iris,is.numeric)

I do not see anything in the chart.Correlation function that would accept that "is.numeric" argument. I think you need to convert everything to numeric before using chart.Correlation. In the iris case "Species".

This seems to work:

dat1 <- iris  # I don't want to modify 'isis".
dat1$Species <- as.numeric(dat1$Species) 
chart.Correlation(dat1, histogram = TRUE,
                  method = c("pearson"),
                  pch = 1)