I want to create a scatter plot that has marginal dot diagrams. I can find plenty of help on how to construct a scatter plot with marginal histograms, but not with marginal dot diagrams. Something like this:
This is the code I've used to do the scatter plot:
\documentclass{article}
\usepackage{tikz,pgfplots}
\begin{document}
\begin{tikzpicture}
\begin{axis}[%
scatter/classes={%
a={mark=o,draw=black}}]
\addplot[scatter,only marks,%
scatter src=explicit symbolic]%
table[meta=label] { x y label 1 18.95 a 2 19 a 3 17.95 a 3 15.54 a 4 14 a 5 12.95 a 6 8.94 a 8 7.49 a 9 6 a 11 3.99 a };
\end{axis}
\end{tikzpicture}
\end{document}
Any help would be appreciated.



\usepackage{tikz,pgfplots}
\begin{document} \ \begin{tikzpicture}
\begin{axis}[% scatter/classes={% a={mark=o,draw=black}}] \addplot[scatter,only marks,% scatter src=explicit symbolic]% table[meta=label] { x y label 1 18.95 a 2 19 a 3 17.95 a 3 15.54 a 4 14 a 5 12.95 a 6 8.94 a 8 7.49 a 9 6 a 11 3.99 a
\end{axis}
\end{tikzpicture}
\end{document}
– Ann Marie Jan 14 '16 at 02:27