I am trying to use ggplot()
. The datatype of Percentage is Double. In the dataset, there is no NAs in both Percentage and Year columns.
l1 <- ggplot(data, aes(Year, Percentage)) +
scale_x_discrete(name="Year From 2015 to 2018") +
scale_y_discrete(name="Employment Outcomes")
The error said:
Error in if (zero_range(from) || zero_range(to)) { : missing value where TRUE/FALSE needed