Compute Density of the Distribution Function in R Programming - dunif() Function Last Updated : 30 Jun, 2020 Summarize Comments Improve Suggest changes Share 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 U 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 Like