Type function for plotting points, i.e. a scatter plot.
Usage
type_points(clim = c(0.5, 2.5))
Arguments
clim
Numeric giving the lower and upper limits of the character expansion (cex) normalization for bubble charts.
Examples
library("tinyplot")# "p" type convenience character stringtinyplot(Sepal.Length ~ Petal.Length, data = iris, type ="p")
# Same result with type_points()tinyplot(Sepal.Length ~ Petal.Length, data = iris, type =type_points())# Note: Specifying the type here is redundant. Like base plot, tinyplot# automatically produces a scatter plot if x and y are numerictinyplot(Sepal.Length ~ Petal.Length, data = iris)# Grouped scatter plot exampletinyplot(Sepal.Length ~ Petal.Length | Species, data = iris)
# Fancier version with dual legends and extra customizationtinyplot(Sepal.Length ~ Petal.Length | Species,data = iris,cex = iris$Sepal.Width, clim =c(1, 5),pch =21, fill =0.3)