Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

X-Axis Disappears in api_create()  #1197

Copy link
Copy link
Closed
@m-champion

Description

@m-champion
Issue body actions

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")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.