@@ -152,12 +152,12 @@ setMethod("trans_plot",
152152
153153 if (layer == " line" ){
154154 player <- geom_path(aes(x = pos ,y = smooth ,color = exp ))
155- col <- scale_color_manual(values = c(" ribo" = " red" , " rna" = " grey" ))
155+ col <- scale_color_manual(values = c(" ribo" = " red" , " rna" = " grey" ), name = " " )
156156 col1 <- NULL
157157 }else {
158158 player <- geom_col(aes(x = pos ,y = smooth ,fill = exp ,color = exp ),width = 1 , alpha = col_alpha )
159- col <- scale_fill_manual(values = c(" ribo" = " red" , " rna" = " grey" ))
160- col1 <- scale_color_manual(values = c(" ribo" = " red" , " rna" = " grey" ))
159+ col <- scale_fill_manual(values = c(" ribo" = " red" , " rna" = " grey" ), name = " " )
160+ col1 <- scale_color_manual(values = c(" ribo" = " red" , " rna" = " grey" ), name = " " )
161161 }
162162
163163 }else if (type == " scaled_ribo" ){
@@ -440,7 +440,7 @@ setMethod("genome_trans_plot",
440440 if (layer == " line" ){
441441 player <- geom_path(aes(x = pos ,y = smooth ,color = sample ))
442442 }else {
443- player <- geom_col(aes(x = pos ,y = smooth ,fill = sample ),width = 1 )
443+ player <- geom_col(aes(x = pos ,y = smooth ,fill = sample , color = sample ),width = 1 )
444444 }
445445
446446 col <- NULL
@@ -457,7 +457,7 @@ setMethod("genome_trans_plot",
457457 if (layer == " line" ){
458458 player <- geom_path(aes(x = pos ,y = smooth ,color = sample ))
459459 }else {
460- player <- geom_col(aes(x = pos ,y = smooth ,fill = sample ),width = 1 )
460+ player <- geom_col(aes(x = pos ,y = smooth ,fill = sample , color = sample ),width = 1 )
461461 }
462462
463463 col <- NULL
@@ -486,12 +486,12 @@ setMethod("genome_trans_plot",
486486
487487 if (layer == " line" ){
488488 player <- geom_path(aes(x = pos ,y = smooth ,color = exp ))
489- col <- scale_color_manual(values = c(" ribo" = " red" , " rna" = " grey50" ))
489+ col <- scale_color_manual(values = c(" ribo" = " red" , " rna" = " grey50" ), name = " " )
490490 col1 <- NULL
491491 }else {
492492 player <- geom_col(aes(x = pos ,y = smooth ,fill = exp ,color = exp ),width = 1 ,alpha = col_alpha )
493- col <- scale_fill_manual(values = c(" ribo" = " red" , " rna" = " grey50" ))
494- col1 <- scale_color_manual(values = c(" ribo" = " red" , " rna" = " grey50" ))
493+ col <- scale_fill_manual(values = c(" ribo" = " red" , " rna" = " grey50" ), name = " " )
494+ col1 <- scale_color_manual(values = c(" ribo" = " red" , " rna" = " grey50" ), name = " " )
495495 }
496496
497497 }
0 commit comments