getATCLevelPlot: Get Anatomical Therapeutic Chemical Classification...

View source: R/getATCLevelPlot.R

getATCLevelPlotR Documentation

Get Anatomical Therapeutic Chemical Classification System(ATC) code level code distribution histogram plot

Description

getAtcLevelPlot is a function to get daily dosage drugs(DDDs) in Anatomical Therapeutic Chemical Classification System(ATC) code level histogram plot.

Usage

getATCLevelPlot(df, ATCColName = ATC, level = 1)

Arguments

df

data.frame, include ATC code

ATCColName

a column name for ATC code of df

Details

If the amount of drug information obtained by the user is large and messy, the user can first visualize the data using basic statistical tools, explore the characteristics of the data, and obtain the information, structure and features contained in the data. Because before having a complicated or rigorous analysis, user must have more knowledge of the data to determine the direction of the data analysis.

Examples

# sample of getting ATC first-level code distribution bar chart
getATCLevelPlot(df = sample_data_ATC1LevelPlot, ATCColName = ATC, level = 1)
# sample of getting ATC second-level code distribution bar chart
getATCLevelPlot(df = sample_data_ATC1LevelPlot, ATCColName = ATC, level = 2)

DHLab-CGU/pharm documentation built on July 2, 2022, 7:16 a.m.