| iscamdotplot | R Documentation |
dotplot creates a horizontal dot plot. If a second categorical variable is
given, the data is grouped by this variable. Use names & mytitle to
specify the labels and title.
iscamdotplot(
response,
explanatory = NULL,
main = "",
xlab = substitute(response),
ylab = substitute(explanatory)
)
response |
Vector of numeric values to plot. |
explanatory |
(optional) second categorical variable to group by. |
main |
(optional) title for the plot. |
xlab |
(optional) x-axis label for the plot. |
ylab |
(optional) y-axis label for the plot. Only displayed when |
A dot plot.
iscamdotplot(
mtcars$cyl,
main = "mtcars Cylinders Dotplot",
xlab = "Number of Cylinders"
)
iscamdotplot(
mtcars$mpg,
mtcars$am,
main = "Automatic Cars Have Better Mileage on Average",
xlab = "Mileage (miles per gallon)",
ylab = "Automatic (yes coded as 1)"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.