I want to get the coordinates from the "barplot" function, but prevent the launch of the graphics device.
When I run the commands,
x <- c(10, 23, 20)
y <- barplot(x)
barplot coordinates are stored in y, and the bar graph appears at the same time. However, I do not want to start the graphics device, what should I do?
Thank.
source
share