Skip to content

Commit

Permalink
better plot example; binary data storage
Browse files Browse the repository at this point in the history
  • Loading branch information
kingaa committed May 10, 2021
1 parent 301e8b9 commit 40246ec
Show file tree
Hide file tree
Showing 10 changed files with 44 additions and 110 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Package: ouch
Type: Package
Title: Ornstein-Uhlenbeck Models for Phylogenetic Comparative Hypotheses
Version: 2.16-7
Date: 2021-05-09
Date: 2021-05-10
Authors@R: c(person(given=c("Aaron","A."),family="King",role=c("aut","cre"),email="[email protected]"),
person(given=c("Marguerite","A."),family="Butler",role=c("ctb")))
Maintainer: Aaron A. King <[email protected]>
Expand Down
1 change: 1 addition & 0 deletions R/plot.R
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ arrange_tree <- function (root, anc, cs, ypos = numeric(length(anc))) {
#' @importFrom graphics par
#' @importFrom grDevices rainbow
#' @importFrom stats setNames
#' @example examples/bimac2.R
#' @export
setMethod(
"plot",
Expand Down
39 changes: 0 additions & 39 deletions data/anolis.ssd.csv

This file was deleted.

Binary file added data/anolis.ssd.rda
Binary file not shown.
46 changes: 0 additions & 46 deletions data/bimac.csv

This file was deleted.

Binary file added data/bimac.rda
Binary file not shown.
12 changes: 0 additions & 12 deletions examples/bimac1.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,3 @@ tree

plot(tree)
plot(tree, node.names=TRUE) # display node names

## When taxon names are long, they are cut off when the
## default settings are used. For example:
tree2 <- with(
bimac,
ouchtree(nodes=node,ancestors=ancestor,times=time,
labels=ifelse(is.na(species),NA,paste(species,island,sep=", "))
)
)
plot(tree2) # long species names are cut off
## This is fixed by increasing right margin and font size:
plot(tree2,margin=0.5)
20 changes: 20 additions & 0 deletions examples/bimac2.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
tree <- with(
bimac,
ouchtree(nodes=node,ancestors=ancestor,times=time,labels=spcode)
)

plot(tree)
plot(tree, node.names=TRUE) # display node names

## When taxon names are long, they are cut off when the
## default settings are used. For example:
tree2 <- with(
bimac,
ouchtree(nodes=node,ancestors=ancestor,times=time,
labels=ifelse(is.na(species),NA,paste(species,island,sep=", "))
)
)

plot(tree2) # long species names are cut off
## This is fixed by increasing right margin and font size:
plot(tree2,margin=0.35,text_opts=list(cex=0.7))
12 changes: 0 additions & 12 deletions man/ouchtree.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 22 additions & 0 deletions man/plot.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 40246ec

Please sign in to comment.