Skip to content
Related Articles

Related Articles

Compute the Value of Geometric Quantile Function in R Programming – qgeom() Function
  • Last Updated : 30 Jun, 2020

qgeom() Function in R Language is used to plot a graph for quantile function of Geometric Distribution.

Syntax: qgeom(x, prob)

Parameters:
x: x-values of qgeom() function
prob: prob of plot

Example 1:

filter_none

edit
close

play_arrow

link
brightness_4
code

# R program to illustrate
# qgeom() function in r
  
# Specify x-values for qgeom function
x_qgeom <- seq(0, 2, by = 0.1)   
  
# Apply qgeom function           
y_qgeom <- qgeom(x_qgeom, prob = 1
# Plot qgeom values    
plot(y_qgeom)                                                  

chevron_right


Output:

Example 2:

filter_none

edit
close

play_arrow

link
brightness_4
code

# R program to illustrate
# qgeom() function in r
  
# Specify x-values for qgeom function
x_qgeom <- seq(0, 2, by = 0.02)   
  
# Apply qgeom function           
y_qgeom <- qgeom(x_qgeom, prob = 0.5
# Plot qgeom values    
plot(y_qgeom) 

chevron_right


Output:

My Personal Notes arrow_drop_up
Recommended Articles
Page :