PairedSmoothHistogram

PairedSmoothHistogram[{x1,x2,},{y1,y2,}]

plots a paired smooth histogram of the values xi and yi.

PairedSmoothHistogram[{x1,x2,},{y1,y2,},espec]

plots a paired smooth histogram with estimator specification espec.

PairedSmoothHistogram[{x1,x2,},{y1,y2,},espec,dfun]

plots a paired smooth histogram with distribution function dfun.

PairedSmoothHistogram[{data11,},{data21,},]

plots paired smooth histograms for multiple datasets data1i and data2j.

Details and Options

Examples

open allclose all

Basic Examples  (2)

Generate a paired smooth histogram of two datasets:

Plot the probability density function of the datasets:

Cumulative distribution function:

Survival function:

Hazard function:

Cumulative hazard function:

Scope  (15)

Data  (7)

Plot different distribution functions:

PlotRange is selected automatically:

Use PlotRange to focus on areas of interest:

Nonreal data points are ignored:

Specify the number of times to refine the curve:

Use wrappers on datasets:

Override the default tooltips:

Use any object in the tooltip:

Use PopupWindow to provide additional drilldown information:

Presentation  (8)

Multiple datasets are automatically colored to be distinct:

Provide explicit styling to different sets:

Add labels:

Use the default tooltip for the data:

Provide an interactive tooltip for the data:

Create filled plots:

Create an overlay mesh:

Style the curve segments between mesh points:

Options  (53)

AspectRatio  (2)

Choose the ratio of height to width from the actual plot values:

Scale the graphic so that the height and width are the same:

ClippingStyle  (4)

Omit clipped regions of the plot:

Show the clipped regions like the rest of the curve:

Show the clipped regions with red lines:

Show the clipped regions as red and thick:

ColorFunction  (5)

Color by scaled and coordinates:

Color with a named color scheme:

Fill with the color used for the curve:

ColorFunction has higher priority than PlotStyle for coloring the curve:

Use Automatic in MeshShading to use ColorFunction:

ColorFunctionScaling  (2)

Color the line based on scaled value:

Color the line based on unscaled value:

Filling  (6)

Use symbolic or explicit values:

By default, overlapping fills combine using opacity:

Fill between curve 1 and the axis:

Fill between curves 1 and 2:

Fill between datasets using a particular style:

Use different styles above and below the filling level:

FillingStyle  (4)

Use different fill colors:

Fill with opacity 0.5 orange:

Fill with red when the first curve is below the second, and blue when the second is below the first:

Use a variable filling style obtained from a ColorFunction:

MaxRecursion  (2)

The default sampling mesh:

Each level of MaxRecursion will subdivide the initial mesh into a finer mesh:

Mesh  (3)

Use 20 mesh levels evenly spaced in the direction:

Use an explicit list of values for the mesh in the direction:

Specify mesh levels and styles in the direction:

MeshFunctions  (2)

Use a mesh evenly spaced in the and directions:

Show 5 mesh levels in the direction (red) and 10 in the direction (blue):

MeshShading  (6)

Alternate red and blue segments of equal width in the direction:

Use None to remove segments:

MeshShading can be used with PlotStyle:

MeshShading has higher priority than PlotStyle for styling the curve:

Use PlotStyle for some segments by setting MeshShading to Automatic:

MeshShading can be used with ColorFunction:

MeshStyle  (4)

Color the mesh the same color as the plot:

Use a red mesh in the direction:

Use a red mesh in the direction and a blue mesh in the direction:

Use big, red mesh points in the direction:

PerformanceGoal  (2)

Generate a higher-quality plot:

Emphasize performance, possibly at the cost of quality:

PlotOrigin  (1)

Change the plot origin:

PlotPoints  (1)

Use more initial points to get a smoother curve:

PlotRange  (2)

PlotRange is automatically calculated:

Show the full range:

SmoothHistogram automatically chooses the plotting domain:

Plot over the middle 90% of the data:

PlotStyle  (6)

Use different style directives:

By default, different styles are chosen for multiple curves:

Explicitly specify the style for different curves:

PlotStyle can be combined with ColorFunction:

PlotStyle can be combined with MeshShading:

MeshStyle by default uses the same style as PlotStyle:

RegionFunction  (1)

Applications  (2)

Compare two time slices for a random process:

Compare two time slices of TemporalData:

Properties & Relations  (1)

PairedSmoothHistogram ignores time stamps of TimeSeries and EventSeries:

Create a histogram for the values only:

Wolfram Research (2012), PairedSmoothHistogram, Wolfram Language function, https://reference.wolfram.com/language/ref/PairedSmoothHistogram.html (updated 2015).

Text

Wolfram Research (2012), PairedSmoothHistogram, Wolfram Language function, https://reference.wolfram.com/language/ref/PairedSmoothHistogram.html (updated 2015).

CMS

Wolfram Language. 2012. "PairedSmoothHistogram." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2015. https://reference.wolfram.com/language/ref/PairedSmoothHistogram.html.

APA

Wolfram Language. (2012). PairedSmoothHistogram. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/PairedSmoothHistogram.html

BibTeX

@misc{reference.wolfram_2024_pairedsmoothhistogram, author="Wolfram Research", title="{PairedSmoothHistogram}", year="2015", howpublished="\url{https://reference.wolfram.com/language/ref/PairedSmoothHistogram.html}", note=[Accessed: 03-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_pairedsmoothhistogram, organization={Wolfram Research}, title={PairedSmoothHistogram}, year={2015}, url={https://reference.wolfram.com/language/ref/PairedSmoothHistogram.html}, note=[Accessed: 03-November-2024 ]}