Skip to content

Commit

Permalink
tweak to plot routines
Browse files Browse the repository at this point in the history
  • Loading branch information
kingaa committed Feb 14, 2024
1 parent 269116c commit a53f722
Show file tree
Hide file tree
Showing 41 changed files with 8 additions and 3 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Package: phylopomp
Type: Package
Title: Phylodynamic Inference for POMP Models
Version: 0.10.2.0
Date: 2024-02-12
Version: 0.10.3.0
Date: 2024-02-14
Authors@R: c(person(given=c("Aaron","A."),family="King",role=c("aut","cre"),email="[email protected]",comment=c(ORCID="0000-0001-6159-3207")),
person(given=c("Qianying"),family="Lin",role=c("aut"),comment=c(ORCID="0000-0001-8620-9910"))
)
Expand Down
4 changes: 3 additions & 1 deletion R/treeplot.R
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ treeplot <- function (
separate(label,into=c("nodecol","deme","label")) |>
mutate(
deme=if_else(deme=="NA",NA_character_,deme),
label=if_else(label=="NA",NA_character_,label)
label=if_else(label=="NA",NA_character_,label),
y=y-3
) -> dat

ndeme <- max(1L,length(unique(dat$deme))-1L)
Expand Down Expand Up @@ -131,6 +132,7 @@ treeplot <- function (
scale_alpha_manual(values=c(`TRUE`=1,`FALSE`=0))+
guides(alpha="none",color="none")+
expand_limits(x=c(dat$x,t0,time))+
coord_cartesian(ylim=c(0,NA),expand=TRUE,default=FALSE)+
theme_tree2()+
theme(...) -> pl

Expand Down
2 changes: 2 additions & 0 deletions inst/NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ _C_h_a_n_g_e_s _i_n '_p_h_y_l_o_p_o_m_p' _v_e_r_s_i_o_n

• Parameter name changes in some of the examples.

• In plotting, trees are shifted down on the y axis.

_C_h_a_n_g_e_s _i_n '_p_h_y_l_o_p_o_m_p' _v_e_r_s_i_o_n _0._9:

• Inclusion of ‘pomp’ methods for SEIRS model.
Expand Down
1 change: 1 addition & 0 deletions inst/NEWS.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
\item The genealogy description (\code{getInfo(description=TRUE)}) now reports both deme and lineage.
\item \code{curtail()} more carefully rewinds the history.
\item Parameter name changes in some of the examples.
\item In plotting, trees are shifted down on the y axis.
}
}
\section{Changes in \pkg{phylopomp} version 0.9}{
Expand Down
Binary file modified tests/curtail-01.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/diagram-07.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/lbdp1-02.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/lbdp1-03.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/lbdp1-04.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/lbdp2-01.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/lbdp2-03.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/lbdp2-04.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/lbdp3-01.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/lbdp3-02.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/lbdp3-03.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/lineages-02.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/lineages-03.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/moran1-01.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/moran1-02.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/parse-01.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/parse-02.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/parse-03.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/parse-04.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/parse-05.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/parse-06.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/parse-07.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/plot-01.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/seir1-01.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/seir1-02.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified tests/seir2-01.png
Binary file modified tests/seir2-02.png
Binary file modified tests/seir2-03.png
Binary file modified tests/seir2-05.png
Binary file modified tests/si2r1-01.png
Binary file modified tests/si2r1-02.png
Binary file modified tests/si2r1-04.png
Binary file modified tests/siir1-01.png
Binary file modified tests/siir1-02.png
Binary file modified tests/siir1-03.png
Binary file modified tests/sir1-01.png
Binary file modified tests/sir1-02.png

0 comments on commit a53f722

Please sign in to comment.