Description
Greetings.
I have been having an issue recently where the x-axis labels have been disappearing from graphs I've created in R once uploaded using api_create(). I've repeated this numerous times, and it seems entirely reproducible. I've supplied the short R code that highlights the issue. This x-axis disappearance occurs whether or not the ggplotly() function is called before api_create().
I've attempted to specify x-axis markers in ggplotly() as well before uploading, but these are stripped during upload. I've also removed all theme values, and the x-axis is still removed. I've changed the geom between bar() and col() to the same effect.
Here is the graph as intended:
https://drive.google.com/file/d/1lQDq98FwYMhS0zxttrrZnOpU3T8JeHar/view?usp=sharing
Here is the graph after upload:
https://plot.ly/~m_champion/102/
Code Example
example <- ggplot(mtcars, aes(x = rownames(mtcars), y = mpg)) +
geom_col() +
#geom_bar(stat = "identity") + #X-Axis disappears in both geom_col() and geom_bar()
ggtitle("Cars by MPG") +
ylab("Miles per Gallon") +
xlab("Car Make and Model")
example.plotly <- ggplotly(example)
api_create(example.plotly, "Example/example")