Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

example for plot #7

Closed
mbutler808 opened this issue May 8, 2021 · 1 comment
Closed

example for plot #7

mbutler808 opened this issue May 8, 2021 · 1 comment

Comments

@mbutler808
Copy link

Hi @kingaa
Here is a suggested example for the plot.R help page section for users on how to adjust label size.
Marguerite

#' @examples
#' data(bimac)
#' tree <- with(bimac,ouchtree(node,ancestor,time/max(time),species))
#' plot(tree, node.names=T)    # plot tree with node numbers
#' tree@nodelabels[!is.na(tree@nodelabels)]  <- paste("LongerSpeciesNames", 1:tree@nterm)
#' plot(tree)        # long species names are small
#' plot(tree, text_opts = list(cex=1.5), margin=c(0,.4))    # fix by increasing right margin and font size
#' 
@kingaa
Copy link
Owner

kingaa commented May 8, 2021

Thanks for this! I'll put it into the next release.

@kingaa kingaa closed this as completed May 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants