Skip to content

Blank plot for plotLDA() #3

@xkcococo

Description

@xkcococo

Thanks for providing this package.
I am trying to use it for plotting LDA.

The res table that I get from the function successfully, but when I use:

res <- ldamarker(ps_1,group="breastfeeding_group")
head(res,10)
# A tibble: 10 x 13
# Groups:   rank, tax [10]
   rank  tax      statistic p.value parameter method   p.adj `exclusive brea… `non-exclusive …   max
   <chr> <chr>        <dbl>   <dbl>     <int> <chr>    <dbl>            <dbl>            <dbl> <dbl>
 1 Class D_0__Ar…    1.00   0.316           1 Kruskal… 0.739              NA               NA    NA 
 2 Class D_0__Ba…    0.184  0.668           1 Kruskal… 0.872              NA               NA    NA 
 3 Class D_0__Ba…    1.13   0.288           1 Kruskal… 0.739              NA               NA    NA 
 4 Class D_0__Ba…    1.31   0.253           1 Kruskal… 0.739              NA               NA    NA 
 5 Class D_0__Ba…    0.0412 0.839           1 Kruskal… 0.955              NA               NA    NA 
 6 Class D_0__Ba…    2.28   0.131           1 Kruskal… 0.626              NA               NA    NA 
 7 Class D_0__Ba…    7.41   0.00649         1 Kruskal… 0.287             406.            1861. 1861.
 8 Class D_0__Ba…    3.83   0.0504          1 Kruskal… 0.510              NA               NA    NA 
 9 Class D_0__Ba…    0.169  0.681           1 Kruskal… 0.872              NA               NA    NA 
10 Class D_0__Ba…    0.144  0.704           1 Kruskal… 0.876              NA               NA    NA 
# … with 3 more variables: min <dbl>, LDAscore <dbl>, direction <chr>
plotLDA(res,group=c("exclusive breastfeeding","non-exclusive breastfeeding"),lda=5,pvalue=0.05)

The plot that generated is blank, only has a x-axis label.

Could you help me to address it ?
Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions