Skip to content

Create univariate graph function #14

Description

@scheidec

Proposed syntax:

univariate_plot(tbl, x, xlab)

where

  • tbl is the dataframe containing x
  • x is the variable of interest
  • xlab is the x-axis label which defaults to the label metadata but uses the variable name if empty

Outputs:

  • If x is categorical --> bar graph where y-axis is labeled Percent (%) and bars are labeled with counts
  • If x is continuous --> histogram

Activity

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions