Skip to content

Unicode donen't work on axis text but on geom_text? #1827

Closed
@emillykkejensen

Description

@emillykkejensen

I can't seem to get the axis text showing unicode, but when i try it in geom_text it shows up just fine.

Is there a way to do this or...?

ggdata <- data.frame(text = c("text 1", "text <U+2665>", "text ♥"), value = c(1, 3, 5), stringsAsFactors = FALSE)

ggplot(data = ggdata, aes( x = text, y = value, label = text)) + geom_bar(stat="identity") + geom_text(nudge_y = 1)

rplot

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions