Skip to content

wholesale import of graphics given wide usage#392

Open
MichaelChirico wants to merge 1 commit into
rmcelreath:masterfrom
MichaelChirico:patch-4
Open

wholesale import of graphics given wide usage#392
MichaelChirico wants to merge 1 commit into
rmcelreath:masterfrom
MichaelChirico:patch-4

Conversation

@MichaelChirico

@MichaelChirico MichaelChirico commented Feb 14, 2023

Copy link
Copy Markdown

e.g. dotchart, lines, abline here:

rethinking/R/coeftab.r

Lines 44 to 60 in 783d111

dotchart( x , xlab=xlab , xlim=c(llim,rlim) , ... )
for ( k in 1:nrow(x) ) {
for ( m in 1:ncol(x) ) {
if ( !is.na(left[k,m]) ) {
# to compute y position:
# coefs in groups by model
# groups have nrow(x)+1 lines
# empty line between each group
kn <- nrow(x)
ytop <- ncol(x)*(kn+2)-1
ypos <- ytop - (m-1)*(kn+2) - (kn-k+1)
lines( c(left[k,m],right[k,m]) , c(ypos,ypos) , lwd=2 , col=col.ci )
}
}
}
abline( v=0 , lty=1 , col=col.alpha("black",0.15) )

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

Successfully merging this pull request may close these issues.

1 participant