Learn R Programming

fpmoutliers (version 0.1.0)

plotRestrictedBarplot: Plot of a restricted barplot with a highlighted selected value

Description

Plot of a restricted barplot with a highlighted selected value

Usage

plotRestrictedBarplot(data, selectedValue, bars = 10, title = "")

Arguments

data

vector with all values

selectedValue

value that will be highlighted

bars

max number of bars to plot, only top lowest and top highest frequencies will be presented

title

main title of the plot

Examples

Run this code
# NOT RUN {
library("fpmoutliers")
data <- sample(1:1000, 1000, replace = TRUE)
selectedValue <- data[length(data)/2]
plotRestrictedBarplot(data, selectedValue, bars = 15,
     title=paste("Experimental=",selectedValue,sep=""))
# }

Run the code above in your browser using DataLab