Compute Density of the Distribution Function in R Programming - dunif() Function Last Updated : 30 Jun, 2020 Comments Improve Suggest changes Like Article Like Report dunif() function in R Language is used to provide the density of the distribution function. Syntax: dunif(x, min = 0, max = 1, log = FALSE) Parameters: x: represents vector min, max: represents lower and upper limits of the distribution log: represents logical value for probabilities Example 1: r # Create vector of random deviation u <- runif(20) dunif(u) == u print(dunif(u)) Output: [1] FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE [13] FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE [1] 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 Example 2: r # Output to be present as PNG file png(file = "dunifGFG.png") # Plot density curve(dunif(x, min = 2, max = 6), 0, 8, ylim = c(0, 0.5), ylab = "f(x)", main = "Uniform Density f(x)") # Saving the file dev.off() Output: Comment More infoAdvertise with us Next Article Compute Density of the Distribution Function in R Programming - dunif() Function utkarsh_kumar Follow Improve Article Tags : R Language R Statistics Similar Reads Compute the value of F Cumulative Distribution Function in R Programming - pf() Function pf() function in R Language is used to compute the density of F Cumulative Distribution Function over a sequence of numeric values. It also plots a density graph for F Cumulative Distribution. Syntax: pf(x, df1, df2) Parameters: x: Numeric Vector df: Degree of Freedom Example 1: Python3 1== # R Prog 1 min read Compute the Value of F Density in R Programming - df() Function df() function in R Language is used to compute the density of F Distribution over a sequence of numeric values. It also plots a density graph for F Distribution. Syntax: df(x, df1, df2) Parameters: x: Numeric Vector df: Degree of Freedom Example 1: Python3 1== # R Program to compute # F Density # Cr 1 min read Compute the value of Quantile Function over F Distribution in R Programming - qf() Function qf() function in R Language is used to compute the value of quantile function over F distribution for a sequence of numeric values. It also creates a density plot of quantile function over F Distribution. Syntax: qf(x, df1, df2) Parameters: x: Numeric Vector df: Degree of Freedom Example 1: Python3 1 min read Compute the Value of Empirical Cumulative Distribution Function in R Programming - ecdf() Function ecdf() function in R Language is used to compute and plot the value of Empirical Cumulative Distribution Function of a numeric vector. Syntax: ecdf(x) Parameters: x: Numeric Vector Example 1: Python3 1== # R Program to compute the value of # Empirical Cumulative Distribution Function # Creating a Nu 1 min read Compute the Logistic Density in R Programming - dlogis() Function dlogis() function in R Language is used to compute logistic density of the distribution. It also creates a plot of the density of the logistic distribution. Syntax: dlogis(vec) Parameters: vec: Vector of x-values for density Example 1: Python3 1== # R program to calculate # logistic density # Create 1 min read Compute the Value of Quantile Function over Uniform Distribution in R Programming - qunif() Function In R programming, qunif() function gives the value of quantile function over Uniform Distribution. Syntax: qunif(p, min, max, lower.tail = TRUE, log.p = FALSE) Parameters: p: represents probabilities vector min, max: represents lower and upper limits of the distribution lower.tail: represents logica 1 min read Compute the Value of Poisson Density in R Programming - dpois() Function dpois() function in R Language is used to compute the Poisson Density for a set of Integer values. It also creates a density plot of poisson distribution. Syntax: dpois(vec, lambda)Parameters: vec: Sequence of integer values lambda: Average number of events per interval Example 1: Python3 # R pro 1 min read Compute the Value of Weibull Density in R Programming - dweibull() Function dweibull() function in R Language is used to compute the value of Weibull Density over different numeric values for Weibull Distribution. Syntax: dweibull(x, shape) Parameters: x: Numeric Vector shape: Shape Parameter Example 1: Python3 1== # R Program to compute # Weibull Density # Creating a seque 1 min read Compute the Negative Binomial Density in R Programming - dnbinom() Function dnbinom() function in R Language is used to compute the value of negative binomial density. It also creates a plot of the negative binomial density. Syntax: dnbinom(vec, size, prob) Parameters: vec: x-values for binomial density size: Number of trials prob: Probability Example 1: Python3 1== # R pro 1 min read Compute Randomly Drawn F Density in R Programming - rf() Function rf() function in R Language is used to compute random density for F Distribution. Syntax: rf(N, df1, df2) Parameters: N: Sample Size df: Degree of Freedom Example 1: Python3 1== # R Program to compute random values # of F Density # Setting seed for # random number generation set.seed(1000) # Set sam 1 min read Like