Pair statement to create pairs of scatter plot

Hello All,

I am running below code :

#----install package-----
installed.packages()
install.packages("nycflights13")
library(nycflights13)
nycflights13::flights
attach(nycflights13::flights)

#----pairs of scatter plot-----
plot(arr_delay, dep_delay)
pairs(~arr_delay+dep_delay)

plot statement works fine. But for some reason pairs statement don't.
It doesn't give any warning or error as well.
I am not sure what am i missing here.

Your help is appreciated.

Thank you.

Hi @Shef01,
Your code runs fine on my machine but you need to be patient for the plots to render; you are outputting 336,776 points with the plot() and twice that with the pairs().

HTH

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.