NispDiachr: (Un)significative Changes in Main Dosmestic NISP between...

Description Usage Arguments Value See Also Examples

View source: R/NispDiachr.R

Description

Plot histograms on Main Dosmestic NISP percent and Chi-square values between two consecutive periods

Usage

1

Arguments

df

a dataframe with a column period wich will be ordered (ex: 1,2,3,...), three columns 'BOTA', 'OC', 'SUDO' with numeric values percents

Value

create o ggplot and cowplot set of plots

See Also

chisq.test

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
# plot histograms with Chi-square values showing (un)significant evolution 
# library(ggplot2)
nisp.df <- read.table(system.file("extdata", "nispdf.tsv", package = "aritmek4")) # load sample
g <- NispDiachr(nisp.df)
## [1] "compare period: 1--2"
## [1] "0.06"
## [1] "compare period: 2--3"
## [1] "0"
## Warning message:
## In rbind(lhisto, lchi) :
##   number of columns of result is not a multiple of vector length (arg 2)
g

zoometh/arithmetic documentation built on Nov. 19, 2020, 7:21 p.m.