Learn R Programming

PublicWorksFinanceIT (version 0.2.0)

plot_funds_bar: Repartition of Financial Funds Allocation: Investment Amounts Barplot

Description

The plot_funds_bar function creates a barplot to visually represent the distribution of financial funds allocation across different investment channels.

Usage

plot_funds_bar(data, var_col)

Value

An object of class gg and ggplot representing the barplot

Arguments

data

Dataset of class 'data.frame'. Specify the dataset from which to take information.

var_col

integer value. Specify the number of the columns associated with the variable to visualize.

Author

Lorena Ricciotti

Examples

Run this code
data(OCpoint)
plot_funds_bar(OCpoint, var_col = c(10:15))
#Barplot visualizing the total amount allocated by each fund.

Run the code above in your browser using DataLab