See below example
library(plotly)
p <- plot_ly( labels = c("Eve", "Cain", "Seth", "Enos", "Noam", "Abel", "Awan", "Enoch", "Azura"), parents = c("", "Eve", "Eve", "Seth", "Seth", "Eve", "Eve", "Awan", "Eve"), values = c(10, 14, 12, 10, 2, 6, 6, 4, 4), type = 'sunburst' )
# Create a shareable link to your chart # Set up API credentials: https://plot.ly/r/getting-started
chart_link = api_create(p, filename="sunburst-basic") chart_link
Source: https://plot.ly/r/sunburst-charts/