Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: forplot
Title: Forest plots
Version: 0.0.3
Version: 0.0.4
Authors@R:
person("Lukas", "Bütikofer", , "lukas.buetikofer@unibe.ch", role = c("aut", "cre"),
comment = c(ORCID = "0000-0002-0801-746X"))
Expand Down
6 changes: 5 additions & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,8 @@ bug fix in help file

forplot 0.0.3
------------------
plotting reference line before data
plotting reference line before data

forplot 0.0.4
------------------
bug fix with arrow heads
2 changes: 0 additions & 2 deletions R/forest.R
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,6 @@ fplot<-function(dat,
#points and arrows
#symbols(dat$beta,y.at,squares=1/dat$beta_se,add=TRUE,inches=0.15,bg=pcol,fg=NA)
points(dat$beta,y.at,pch=ps[["pch"]],cex=ps[["cex"]],col=ps[["col"]])
arrows(y0=y.at,y1=y.at,x0=dat$beta_lci,x1=dat$beta_uci,code=3,angle=90,length=0)

#arrows and caps
sel<-dat$beta_lci<min(xlim) | dat$beta_uci>max(xlim)
Expand Down Expand Up @@ -417,7 +416,6 @@ fplot<-function(dat,

#points and arrows
points(dat$beta2,y.at,pch=ps[["pch"]],cex=ps[["cex"]],col=ps[["col"]])
arrows(y0=y.at,y1=y.at,x0=dat$beta_lci2,x1=dat$beta_uci2,code=3,angle=90,length=0)

#arrows and caps
sel<-dat$beta_lci2<min(xlim2) | dat$beta_uci2>max(xlim2)
Expand Down