Skip to content

Commit

Permalink
SmallEdits
Browse files Browse the repository at this point in the history
Updated mistake in vignette
plotClassification was plotting stacks before, now bars are placed next to each other
  • Loading branch information
sbeck committed Aug 31, 2018
1 parent 5ca5931 commit a857e17
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 24 deletions.
2 changes: 1 addition & 1 deletion R/plotting.R
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ plotClassifications <- function(classifications, name="classifications"){
nameClassifications=c("FN","FP","TN","TP")
value <- unname(unlist(classificationsPerc[i,]))
data <- data.frame(nameClassifications,value)
classPlot <- ggplot2::ggplot(data = data,ggplot2::aes(x=name,y=value))+
classPlot <- ggplot2::ggplot(data = data,ggplot2::aes(x=nameClassifications,y=value))+
ggplot2::geom_bar(stat = "identity",fill= c("red4","firebrick2","limegreen","lawngreen"))+
ggplot2::scale_fill_manual(values = c("red4","firebrick2","limegreen","lawngreen"))+
ggplot2::theme_bw()+ggplot2::theme(legend.position = "none",plot.title = ggplot2::element_text(hjust = 0.5))+
Expand Down
21 changes: 0 additions & 21 deletions bimodalR.Rproj

This file was deleted.

4 changes: 2 additions & 2 deletions vignettes/multimodalR.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,7 @@ If all of those requirements are fulfilled, the function should return 'TRUE', i
## Usage of the algorithms

In this package three algorithms that can be used for detecting multimodality,
are implemented.
are implemented. The mclust algorithm that can be used with useMclust() is the one recommended to detect multimodal genes in gene expression data sets.

### mclust
Mclust uses a finite Gaussian mixture modeling fitted via EM algorithm for
Expand Down Expand Up @@ -754,7 +754,7 @@ To use the FlexMix algorithm on your expression data frame (simulated or not)
and gain information which genes are bimodal use the useFlexmix() command:
```{r useFlexmix,eval = FALSE}
#use FlexMix with the expression data frame expression
flexmixOutput <- useFlexmix(expression = expression,maxModality = 2,reps = 1)
flexmixOutput <- useFlexmix(expression = expression,maxModality = 2)
```

Expand Down

0 comments on commit a857e17

Please sign in to comment.