Can't use ggplot2 to visualize 'flights' data

We really need more information
At the veery least we need your complete set of errer messages.

However the complete code and some sample data would likely be useful.

See this on how to make a reproducible example (reprex) for some suggestions