I knew how to insert a .png image to a table using annotation_custom() function, but can I use the same function when the variable on the x-axis is categorical? If I can, how should I modify the syntaxes then? And are there any possible ways to convert categorical variables into qualitative variables? I have edited my command, but I still cannot see the image. Here is my command:
AmericanAirlines <- readPNG("C:\\Users\\Desktop\\AU 19\\Lab 5\\American Airlines.png")
dim(AmericanAirlines)
grobAA <- rasterGrob(AmericanAirlines, interpolate=TRUE)
plot3 + annotation_custom(grobAA, xmin=1, xmax=2, ymin=1, ymax=2)
p.s.: I think there is nothing wrong with the plot3 since I can get the plot successfully.
Thanks for your answer!