error: cannot coerce type ‘S4’ to vector of type ‘double’ when import graphics::plot

When I check one of my package, I got error: Error in a ...