From cf8d95a695f32d9025503f06047a0d2169af69b6 Mon Sep 17 00:00:00 2001 From: marcelcosta Date: Fri, 8 Jul 2022 10:45:20 +0200 Subject: [PATCH] Explicitar el paquet dplyr per a rename. --- chromatoR/app.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chromatoR/app.R b/chromatoR/app.R index d5a9310..714ee5d 100644 --- a/chromatoR/app.R +++ b/chromatoR/app.R @@ -220,7 +220,7 @@ server <- function(input, output) { ranPeaks<-range(picks$rows) - obj$plot<-obj_ab@traceMatrix %>% as.data.frame() %>% rename(A=V1,C=V2,G=V3,T=V4) %>% add_column(rows=1:nrow(.)) %>% + obj$plot<-obj_ab@traceMatrix %>% as.data.frame() %>% dplyr::rename(A=V1,C=V2,G=V3,T=V4) %>% add_column(rows=1:nrow(.)) %>% filter(rows >= ranPeaks[1] & rows <= ranPeaks[2]) %>% gather(Base, Value, -rows) %>% mutate(Base=factor(Base, levels=c("G","A","T","C"))) %>% ggplot(aes(rows, Value))+