gpX83= plot_ly(df_X83,
labels = ~Var1,
values=~Freq,
type ='pie', sort = F) %>% layout(title = list(text = paste0('Gráfico 83.1','<br>', '<sup>',
'Com que frequência você participou de novas capacitações?','</sup>'),x = 0.1),
colorway = c('#E41A1C', '#377EB8' , '#4DAF4A', '#984EA3','#FF7F00', '#FFFF33', '#A65628', '#F781BF'),
legend= list(orientation='h'))
I need to give a space between the title and area of the graph, does anyone know what function to use?
The margin needs a workaround. It can be added to the layout as margin =
.
For example:
mrg <- list(l = 50, r = 50,
b = 50, t = 50,
pad = 20)
gpX83 <- plot_ly(df, labels = ~Project, values=~Emissions,
type ='pie', sort = F) %>%
layout(title = list(text = paste0('Gráfico 83.1','<br>', '<sup>',
'Com que frequência você participou de novas capacitações?','</sup>'),x = 0.1),
colorway = c('#E41A1C', '#377EB8' , '#4DAF4A', '#984EA3','#FF7F00', '#FFFF33', '#A65628', '#F781BF'),
legend= list(orientation='h'),
margin = mrg)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With