Skip to content

Error in geom_subview #29

@canfeng-HUA

Description

@canfeng-HUA

I meet an error when I try to plot a bubble plot following the tutorial (https://guangchuangyu.github.io/cn/2017/07/pie-version-of-bubble-plot/).

when I use the following code, an error occurred.
p <- ggplot(crime, aes(murder, Robbery)) + geom_subview(leg1, x=10, y=50) + geom_subview(crime$pie, crime$murder, crime$Robbery, width=crime$width, height=crime$height) + geom_text_repel(aes(label=state))

Error in geom_subview(leg1, x = 10, y = 50) :
x aesthetic mapping should be provided

Could you please help me to solve it.

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