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

wholesale import of graphics given wide usage #392

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

MichaelChirico
Copy link

@MichaelChirico MichaelChirico commented Feb 14, 2023

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