| log | R Documentation |
The log scale maps data values to a visual property
through a base-10 logarithm transformation.
log
The name of an aesthetic to scale (required).
library(duckdb)
con <- dbConnect(duckdb())
dbWriteTable(con, "cars", cars)
dbGetPlot(con, "
visualize
horsepower as x,
miles_per_gallon as y
from cars
using points
scale by
log(x),
log(y)
")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.