Closed richelbilderbeek closed 4 years ago
Hi Klaus,
When I create an ordinary plot, using plot, adding a title is easy:
plot
plot(1:10, main = "my_title")
To add a title to a phangorn::densiTree function, I read in the doc:
phangorn::densiTree
... further arguments to be passed to plot.
I deduce I should use main as an argument to get a title, as this is the same as in plot.
main
When I do that:
phangorn::densiTree(c(ape::rcoal(n = 10)), main = "my_title")
I get a densiTree without a title:
densiTree
I wonder if either
phangorn
Full script is below, looking forward to your response :+1:
png("~/title_around.png") plot(1:10, main = "my_title") dev.off() png("~/title_missing.png") phangorn::densiTree(c(ape::rcoal(n = 10)), main = "my_title") dev.off()
@richelbilderbeek, Thanks for spotting this. Should work now. Klaus
Hi Klaus,
When I create an ordinary plot, using
plot
, adding a title is easy:To add a title to a
phangorn::densiTree
function, I read in the doc:I deduce I should use
main
as an argument to get a title, as this is the same as inplot
.When I do that:
I get a
densiTree
without a title:I wonder if either
phangorn
Full script is below, looking forward to your response :+1:
Full script