Skip to content

Commit

Permalink
debuggind mg_plot
Browse files Browse the repository at this point in the history
  • Loading branch information
ampatzia committed Jul 1, 2017
1 parent 7a5e859 commit 1836737
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/main.R
Original file line number Diff line number Diff line change
Expand Up @@ -881,7 +881,7 @@ mg_plot<-function(object, collapsed ,use_log){
Cluster<-rep("Cluster",length(n_memb))

sums<-data.frame(n_memb,Cluster)%>%
count(Cluster,n_memb)%>%rename(.,Genes="n")
count(Cluster,n_memb)%>%rename(.,Genes=n)


if (collapsed == TRUE) {
Expand All @@ -895,7 +895,7 @@ mg_plot<-function(object, collapsed ,use_log){
if (use_log == TRUE) {sums$Genes <- log(sums$Genes)}


p <- ggplot(y, aes(x = n_memb, y = Genes))+ geom_point()+xlan("Number of Members")
p <- ggplot(sums, aes(x = n_memb, y = Genes))+ geom_point()+xlan("Number of Members")
if (use_log == TRUE) { p <- p + ylab("Genes (log)")}

p
Expand Down

0 comments on commit 1836737

Please sign in to comment.