My code is complete, I just want the image to be more pretty by adding colors in boxes and arrows.
here's the code:
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{shapes.geometric, arrows, positioning}
\begin{document}
\begin{figure}[h]
\centering
% Define block styles
\tikzset{block/.style={rectangle, draw,
text width=23mm, text centered, rounded corners, minimum height=3.5em},
line/.style={draw, -latex'}}
\begin{tikzpicture}[node distance = 1cm, auto]
% Place nodes
\node [block] (Susceptible S) {Susceptible S};
\node [block, right=of Susceptible S] (Exposed E) {Exposed E};
\node[block, right=of Exposed E] (Infectious I){Infectious I};
\node[block, right=of Infectious I] (Recovered R){Recovered R};
% Draw edges
\path [line] (Susceptible S) -- (Exposed E);
\path[line] (Exposed E) -- (Infectious I);
\path[line] (Infectious I) -- (Recovered R);
\end{tikzpicture}
\caption{Flow diagram of the SEIR model.}
\label{fig:seir-flow}
\end{figure}
\end{document}
\tikzset{block/.style={rectangle, draw, text width=23mm, text centered,fill=green!50,draw=blue, rounded corners, minimum height=3.5em},line/.style={draw, -latex',blue}}