Learn R Programming

pracma (version 1.9.3)

semilogx,semilogy: 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.

Value

Generates a plot, returns nothing.

Details

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

See Also

plot with log= option.

Examples

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

Run the code above in your browser using DataLab