myplot: generate a plot from a data frame with color and line type...

View source: R/auxiliary.R

myplotR Documentation

generate a plot from a data frame with color and line type set by specific columns

Description

generate a plot from a data frame with color and line type set by specific columns

Usage

myplot(
  x,
  y,
  col = NULL,
  style = NULL,
  data = .GlobalEnv,
  legend.position = "topright",
  ...
)

Arguments

x

column name for the x values, needs to be a string

y

column name for the y values, needs to be a string

col

column name for the colour attributes, can be of any type, distinct values are represented by distinct colours

style

column name for the line type attributes, can be of any type, distinct values are represented by distinct line types

data

data frame

legend.position

where to place the legend

...

other plotting parameters


wangtengyao/putils documentation built on Nov. 26, 2024, 2:01 a.m.