Skip to content

Multiline formatting syntax in Data Visualization exercises #68

Description

@srappel

In this block of exercises: https://aeturrell.github.io/python4DS/data-visualise.html#exercises-2

The multiline formatting of this block:

ggplot(penguins, aes(x = "island", fill = "species")) +
  geom_bar(position = "fill")
ggplot(penguins, aes(x = "species", fill = "island")) +
  geom_bar(position = "fill")

results in syntax errors.

Recommend replacement with:

ggplot(penguins, aes(x = "island", fill = "species")) + geom_bar(position = "fill")

or for consistency with above blocks:

(
    ggplot(penguins, aes(x = "species", fill = "island"))
    + geom_bar(position = "fill")
)

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