Skip to contents

Assigns selected point shapes to levels of a series variable to be used for plotting and legend.

Usage

g_seriessym(gdata, series_shape = NA, SERIESVAR = "TRTVAR")

Arguments

gdata

Data being used to create graph

series_shape

Tilde-separated shapes corresponding to values in SERIESVAR

SERIESVAR

Series Variable to assign colors to. Examples: "TRTVAR","ETHNIC" Preferably a variable of type factor with distinct levels

Value

named list of symbols per level of grouping variable

Examples

data("adsl")
g_seriessym(adsl, "triangle~cross~circle~square", "TRT01A")
#>              Placebo Xanomeline High Dose  Xanomeline Low Dose 
#>                    2                    4                    1