geom_point ¶
geom_point(
mapping: FeatureSpec | None = None,
*,
data: PlotData | None = None,
stat: str | None = None,
position: Position | None = None,
show_legend: bool | None = None,
inherit_aes: bool | None = None,
manual_key: ManualKey | None = None,
sampling: Sampling | None = None,
tooltips: Tooltips | None = None,
size_unit: str | None = None,
na_rm: bool | None = None,
**other_args: Any,
) -> LayerSpec
Scatter points.
Parameters:
-
mapping(FeatureSpec, default:None) –Aesthetic mapping from
aes():x,y(required),color,fill,size,shape,alpha,stroke. -
data(DataFrame or dict, default:None) –Layer data; inherits the plot data when None.
-
stat(str, default:None) –Stat name (
"identity"). -
position(str or FeatureSpec, default:None) –Position adjustment (
"identity"). -
show_legend(bool, default:None) –False hides this layer from the legend.
-
inherit_aes(bool, default:None) –False ignores the plot's default mapping for this layer.
-
manual_key(str or FeatureSpec, default:None) –A legend key for this layer, as in lets_plot; not supported yet (ggrust warns).
-
sampling(str or FeatureSpec, default:None) –lets_plot sampling; accepted and ignored, as ggrust draws every row.
-
tooltips(FeatureSpec or list of str, default:None) –Tooltip content:
layer_tooltips(), a list of column names, or"none"to disable tooltips (HTML output). -
size_unit((x, y), default:"x") –Size relative to one axis unit, as in lets_plot; not supported for points yet (ggrust warns).
-
na_rm(bool, default:None) –True removes rows with missing values silently; otherwise they are removed with a warning.
-
**other_args(Any) –Constant aesthetics such as
color="red",size=2,alpha=0.5, or constant positionsx=1, y=2.
Returns:
-
LayerSpec–The layer.