Skip to content

Commit

Permalink
fix plotly hover text
Browse files Browse the repository at this point in the history
  • Loading branch information
jminnier committed Jan 23, 2018
1 parent 4409fd9 commit 2fc5f12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fun-analysisres.R
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ rna_volcanoplot <- function(data_results, geneids=NULL,
"adj.P.Val",signif(res$adj.P.Val,3))

for(ii in 1:length(g$x$data)) {
tmpid = do.call(rbind,strsplit(g$x$data[[ii]]$text,"<br>"))[,4]
tmpid = do.call(rbind,strsplit(g$x$data[[ii]]$text,"<br />"))[,4]
g$x$data[[ii]]$text <- newtext[match(tmpid,res$unique_id)]
}

Expand Down Expand Up @@ -331,7 +331,7 @@ rna_scatterplot <- function(data_long, results,

for(ii in 1:length(g$x$data)) {
if(!is.null(g$x$data[[ii]]$text)) {
tmpid = stringr::str_split(g$x$data[[ii]]$text,"<br>",simplify=TRUE)[,4]
tmpid = stringr::str_split(g$x$data[[ii]]$text,"<br />",simplify=TRUE)[,4]
g$x$data[[ii]]$text <- newtext[match(tmpid,pp_wide$unique_id)]
}
}
Expand Down

0 comments on commit 2fc5f12

Please sign in to comment.