Skip to content

Commit

Permalink
Merge branch 'integration'
Browse files Browse the repository at this point in the history
  • Loading branch information
bokov committed Apr 27, 2019
2 parents bee16f2 + b27978c commit be5b9d8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions functions.R
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ quickpoints <- function(
,yy=paste0(colprefix,'All'),xs
#,cols=setNames(brewer_pal(type='qua')(length(groups)),groups)
,alpha=0.5,other=c('Category','NAME',yy),targetodds=1.5
,bandclr='red'
,bandclr='orange'
# tooltip template
,ttemplate='<b>%s</b><br>All Urology: %s<br>%s: %s'
,...){
Expand All @@ -198,10 +198,10 @@ quickpoints <- function(
maxy <- max(c(data0$FRC_REF,data0$FRC),na.rm = T);
bands <- data.frame(pr=seq(0,maxy,len=40)) %>%
mutate(ub=otherpr(pr,targetodds),lb=otherpr(pr,1/targetodds)
,tooltip=paste0('Odds Ratio >',targetodds));
,tooltip=paste('Odds Ratio =',targetodds));
out + geom_abline(slope=1,intercept = 0) +
geom_line(aes(x=pr,y=ub),data=bands,linetype=2,color=bandclr) +
geom_line(aes(x=pr,y=lb),data=bands,linetype=2,color=bandclr) +
geom_line(aes(x=pr,y=ub),data=bands,linetype=3,color=bandclr) +
geom_line(aes(x=pr,y=lb),data=bands,linetype=3,color=bandclr) +
scale_x_continuous(trans=log1p_trans(),limits = c(0,maxy),labels=percent) +
scale_y_continuous(trans=log1p_trans(),limits = c(0,maxy),labels=percent) +
xlab('Percent of each Cohort') + ylab('Percent of All Urology');
Expand Down
2 changes: 1 addition & 1 deletion ui.R
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ shinyUI(fluidPage(
)
#,actionButton('bdebug','Debug')
)
,column(10,textOutput('maintext')
,column(10,textOutput('maintext'),br()
,plotlyOutput('plotmain',width = '79vmin',height = '70vmin'))
)
,fluidRow(bsCollapse(id="details"
Expand Down

0 comments on commit be5b9d8

Please sign in to comment.