diff --git a/statistics/figs/nominaldataplot.png b/statistics/figs/nominaldataplot.png new file mode 100644 index 0000000..0da0cd7 Binary files /dev/null and b/statistics/figs/nominaldataplot.png differ diff --git a/statistics/lecture_statistics.tex b/statistics/lecture_statistics.tex index 2af3343..1307974 100755 --- a/statistics/lecture_statistics.tex +++ b/statistics/lecture_statistics.tex @@ -364,6 +364,45 @@ geeignet. Der Pearson Korrelationskoeffizient ist es nicht. \end{solution} \end{frame} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\section{Beschreibung und Darstellung von Daten} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\subsection{Nominalskala} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%------------------------------------------------------------- +\begin{frame}[fragile] + \frametitle{Darstellung nominaler Daten} + \framesubtitle{Bar-Plot f\"ur Anzahl/ rel. H\"aufigkeit} + \begin{center} + \includegraphics[width=.6\linewidth]{figs/nominaldataplot} + \end{center} +\end{frame} +%------------------------------------------------------------- +\begin{frame}[fragile] + \frametitle{Darstellung nominaler Daten} + \framesubtitle{Bar-Plot f\"ur Anzahl/ rel. H\"aufigkeit} + \scriptsize +\begin{lstlisting} +% eigentlicher Plot +bar([1,2], [50, 90], 'facecolor', 'k') + +% Achsenbeschriftung +ylabel('cell count') +xlabel('cell type') + +% Kosmetik +xlim([0.5,2.5]) +ylim([0, 100]) +box('off') +set(gca,'XTick',1:2,'XTickLabel',{'pyramidal','interneuron'},'FontSize',20) + +% Settings fuers Abspeichern +set(gcf, 'PaperUnits', 'centimeters'); +set(gcf, 'PaperSize', [11.7 9.0]); +set(gcf, 'PaperPosition',[0.0 0.0 11.7 9.0]); +\end{lstlisting} +\end{frame} + \end{document} diff --git a/statistics/matlab/nominal_plots.m b/statistics/matlab/nominal_plots.m new file mode 100644 index 0000000..d4f4d5b --- /dev/null +++ b/statistics/matlab/nominal_plots.m @@ -0,0 +1,12 @@ +close all +% cell type +bar([1,2], [50, 90], 'facecolor', 'k') +ylabel('cell count') +xlabel('cell type') +xlim([0.5,2.5]) +ylim([0, 100]) +box('off') +set(gca,'XTick',1:2,'XTickLabel',{'pyramidal', 'interneuron'},'FontSize',20) +set(gcf, 'PaperUnits', 'centimeters'); +set(gcf, 'PaperSize', [11.7 9.0]); +set(gcf, 'PaperPosition',[0.0 0.0 11.7 9.0]);