spp: Sales Per Person

Description Usage Arguments Details Value Author(s) Examples

View source: R/spp.R

Description

It shows the performance of a salesperson(s) in terms of sales amount achieved against the target

Usage

1
spp(sdt, ss)

Arguments

sdt

a sales amount targetted

ss

a sales amount achieved by the salesperson(s) in the second column of a dataframe containing names/ID of salesperson(s) in the first column

Details

Colour coding is used to display the performance of a salesperson in relation to a target for the barchart visual produced by the function. A bar coloured orange indicates that the salesperson has met the target; a green bar indicates the salesperson has exceeded the target and a red bar and a red bar indicates the person is below the target. Sales amouns are in monetary values of a given currency

Value

comp1

a barplot showing the performance of the salesperson(s)

comp2

a dataframe object of three columns for names/ID, sales amount, sales as percentage of target for the salesperson(s)

Author(s)

Abubakar Akanbi

Examples

1
2
df3 = data.frame(name=c('john','kelvin', 'ayo'), amnount= c(5084,8685,2058))
spp(df3, 5084)

QKPIs documentation built on Feb. 26, 2021, 5:09 p.m.