I can't make plot on ggplotly

hi, i cant make interactive plot with ggplotly and I found this command : Error in gsub("\n", br(), a, fixed = TRUE) :
input string 9 is invalid in this locale. thank you

Hi, can you post the code, not the screenshot? Also, can you make the example reproducible? It will make it easier for people to help you.

plot2 <- ggplot(vids_10, aes(x = avg_views, y = reorder(channel_title, avg_views), text = label)) +
geom_col(aes(fill = avg_views)) +
labs(title = "Top 10 Channel on Entertainment",
subtitle = "contoh",
x = "Average Views",
y = NULL) +
scale_fill_gradient(low = "aquamarine", high= "orange") +
theme_minimal() +
theme(legend.position = "none")

plot2

ggplotly(plot2, tooltip = "text")

object 'vids_10' not found. I recommend that you take williaml's advice to provide a minimal reproducible example

1 Like

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.