Hi,
How can I change the Y axis margin’s size in order to fit the size of the words that appear in the axis?
The code is:
p <- plot_ly()
p <- add_trace(p, wordfreq, x =wordfreq[,2] , y = wordfreq[,1],
marker = list(
color = “#1327d8”,
line = list(
color = “rgba(58, 71, 80, 1.0)”,
width = 1
)
),
orientation=“h”,
type=“bar”)
p <- layout(p, title=“Word Frequency”,
xaxis=list(
title = “Word Count”,
titlefont = list(
color = “#484848”,
family = “Helvetica”,
size = 18
)
),
yaxis=list(
title = “”,
titlefont = list(
color = “#484848”,
family = “Helvetica”,
size = 15), autorange=TRUE))
Thanks
Ricardo