barplotly_func: Create a barplot of a function applied to a dataframe

Description Usage Arguments Value Examples

View source: R/functions.R

Description

This function allows to crate a coloured barplot using the R-package plotly of a function applied to to a specific dataframe.

Usage

1
2
3
4
5
6
7
barplotly_func(
  dataset = NULL,
  func,
  main = "Barplot",
  xname = "Countries",
  yname = "Number of sales"
)

Arguments

dataset

A dataframe (default= 'NULL' which will recall the original dataset).

func

A function to be applied to the columns of the dataset.

main

A character string for the name of the plot (default = 'Barplot').

xname

A character string for the name of the x-axe (default = 'Countries').

yname

A character string for the name of the y-axe (default = 'Number of sales').

Value

The plot for the selected arguments.

Examples

1
data_barplotly(func=sum, title='Barplot of dataset', xname='X-axe', yname='Y-axe')

unimi-dse/9768672c documentation built on Feb. 16, 2020, 5:45 a.m.