ez.wherena: visualize where all the NAs of a dataframe are

View source: R/plot.R

ez.wherenaR Documentation

visualize where all the NAs of a dataframe are

Description

visualize where all the NAs of a dataframe are

Usage

ez.wherena(
  df,
  id = NULL,
  color = "red",
  angle = 270,
  basesize = 9,
  xsize = 1,
  ysize = 1
)

Arguments

df

data frame in wide format

id

a column name as id, will be shown as y axis, quoted "", eg, subject ID; if id not given, internally add row# as id

color

color of missing values, eg, "red"

angle

the x axis label angle, default=270 (vertical), suggests 330 if label is not too long

basesize

base font size

xsize

x axis label font relative size

ysize

y axis label font relative size

Value

a ggplot object (+theme_apa() to get apa format plot)


jerryzhujian9/ezmisc documentation built on March 9, 2024, 12:44 a.m.