Skip to content

Multiline formatting syntax in Data Visualization exercises #68

Open

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")
)

Activity

  1. aeturrell commented on Aug 16, 2026

    @aeturrell
    Owner

    Thank you for spotting this! Will be closed in data-viz-typos

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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