Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

semilog

Semi-logarithmic Plots (Matlab Style)


Description

Generates semi- and double-logarithmic plots.

Usage

semilogx(x, y, ...)
semilogy(x, y, ...)

loglog(x, y, ...)

Arguments

x, y

x-, y-coordinates.

...

additional graphical parameters passed to the plot function.

Details

Plots data in logarithmic scales for the x-axis or y-axis, or uses logarithmic scales in both axes, and adds grid lines.

Value

Generates a plot, returns nothing.

Note

Matlab's logarithmic plots find a more appropriate grid.

See Also

plot with log= option.

Examples

## Not run: 
x <- logspace(-1, 2)
loglog(x, exp(x), type = 'b')
## End(Not run)

pracma

Practical Numerical Math Functions

v2.3.3
GPL (>= 3)
Authors
Hans W. Borchers [aut, cre]
Initial release
2021-01-22

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.