Skip to content

fill does not work in plotHistogram #195

Description

@TuomasBorman

fill = "grey35", alpha = 0.4, scales = "fixed",

fill parameter does not work, i.e., it does not control the fill color.

This line is incorrect:

fill = if(!is.null(attributes(df)[["fill.by"]]))

If fill.by is not specified, fill should not be applied inside mapping. Instead, the line should be something like this:

fill = if(!is.null(attributes(df)[["fill.by"]])) .data[[attributes(df)[["fill.by"]]]]

(i.e. NULL if fill.by is not specified)

and this line

p <- p + geom_histogram(

should be something like this

fill = if(is.null(attributes(df)[["fill.by"]])) fill

(i.e., fill if fill.by is not specified)

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