Learn R Programming

metricsgraphics (version 0.9.0)

mjs_labs: Configure axis labels & plot description

Description

Configure axis labels & plot description

Usage

mjs_labs(mjs, x_label = NULL, y_label = NULL)

Arguments

mjs
metricsgraphics object
x_label
label for x asis
y_label
label for y axis

Value

metricsgraphics object

Examples

Run this code
mtcars %>%
 mjs_plot(x=wt, y=mpg, width=400, height=300) %>%
 mjs_point(color_accessor=carb, size_accessor=carb) %>%
 mjs_labs(x="Weight of Car", y="Miles per Gallon")

Run the code above in your browser using DataLab