Fun fact!
You can make simple diagrams in tex using the \picture tag.
In a picture tag, you can place any tex element at a specific location, and draw lines and circles/ellipses/arcs.
Check the picture section of the
mimetex manual
Example 1:
\picture(100) {
(50,50){\circle(99)} %%head%%
(20,55;50,0;2){\fs{+1}\hat\bullet} %%eyes%%
(50,40){\bullet} %%nose%%
(50,35){\circle(50,25;34)} %%upper lip%%
(50,35){\circle(50,45;34)} %%lower lip%% }
$$\picture(100) {
(50,50){\circle(99)} %%head%%
(20,55;50,0;2){\fs{+1}\hat\bullet} %%eyes%%
(50,40){\bullet} %%nose%%
(50,35){\circle(50,25;34)} %%upper lip%%
(50,35){\circle(50,45;34)} %%lower lip%% }$$
Example 2:
\picture(600,100){
%% Number line %%
(0,50){\line(600,0)}
(50,40;100,0;6){\line(0,15)}
(c50,30){0}
(c150,30){10}
(c250,30){20}
(c350,30){30}
(c450,30){40}
(c550,30){50}
%% Data points %%
(c110,60){\bullet}
(c170,60){\bullet}
(c200,60){\bullet}
(c230,60){\bullet}
(c290,60){\bullet}
%% Mean %%
(200,45){\line(0,-10)}
(200,45){\line(-3,-5)}
(200,45){\line(3,-5)}
(c200,25){\small{\textit{mean}}}
%% Standard deviation %%
(140,75){\line(120,0)}
(140,75){\line(5,3)}
(140,75){\line(5,-3)}
(260,75){\line(-5,3)}
(260,75){\line(-5,-3)}
(c200,85){\small{\textit{standard deviation}}}
}
$$
\picture(600,100){
%% Number line %%
(0,50){\line(600,0)}
(50,40;100,0;6){\line(0,15)}
(c50,30){0}
(c150,30){10}
(c250,30){20}
(c350,30){30}
(c450,30){40}
(c550,30){50}
%% Data points %%
(c110,60){\bullet}
(c170,60){\bullet}
(c200,60){\bullet}
(c230,60){\bullet}
(c290,60){\bullet}
%% Mean %%
(200,45){\line(0,-10)}
(200,45){\line(-3,-5)}
(200,45){\line(3,-5)}
(c200,25){\small{\textit{mean}}}
%% Standard deviation %%
(140,75){\line(120,0)}
(140,75){\line(5,3)}
(140,75){\line(5,-3)}
(260,75){\line(-5,3)}
(260,75){\line(-5,-3)}
(c200,85){\small{\textit{standard deviation}}}
}$$