I am trying to use Mathematica to do some data analysis. I am trying to label points in a plot of a dataset. I know that Callout should work, but can't for the life of me figure out how to make it when I'm plotting b against a and then labeling the points with c.
Here is a subset of the dataset:
dataset =
Dataset[{
<|"a" -> 0.0, "b" -> -1.26, "c" -> 1|>,
<|"a" -> 0.3, "b" -> -1.25, "c" -> 2|>,
<|"a" -> 0.6, "b" -> -1.26, "c" -> 3|>,
<|"a" -> 0.9, "b" -> -1.19, "c" -> 4|>,
<|"a" -> 1.2, "b" -> -0.8, "c" -> 5|>,
<|"a" -> 1.5, "b" -> -0.98, "c" -> 6|>}]
ListLinePlot[Callout[dataset[All, {1, 2}], dataset[All, 3]]]
This doesn't give me what I want as I want to label each point.
I realize I'm missing something fundamental in terms of associating each point. Any assistance is appreciated.
Thanks for the two solutions. I want to modify the plot by assigning the plot to "g" and then using Show:
Show[g, ScalingFunctions -> "Reverse", PlotTheme -> "Detailed"]
but do not see how to do it. I tried using Show without success.


dataset[Map[Callout[{#a, #b}, #c] &] /* ListLinePlot]do what you want? $\endgroup$dataset[ListLinePlot, Callout[{#a, #b}, #c] &]. $\endgroup$