Skip to content

Call for feature: supporting of expressions #1091

Open
@bioinformatist

Description

@bioinformatist

When I try use expression object as lab labels, ggplotly raises an error.

p <- ggplot(data=de$table, aes(x=logFC, y=-log10(PValue), colour=threshold)) +
        geom_point(size=1.75, alpha = 0.4) +
        # ylim(c(0, input$ylmslider)) +
        xlab(expression("log"[2]*"(Fold Change)")) + ylab(expression("-log"[10]*"(p-value)")) +
        geom_vline(xintercept = 0, colour = "grey",
  linetype = "dashed", size = 2) + # add line at 0
        geom_hline(yintercept = -log10(0.05), colour = "grey",
  linetype = "dashed", size = 2) + theme(legend.position = "none") # p(0.05) = 1.3
#> Everything is ok up to now
ggplotly(p)
#> Error in unique.default(x) : unimplemented type 'expression' in 'HashTableSetup'

You can reproduce this scenario by using any expression as axis titles.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions