如何将图表转换为 LaTeX

如何将图表转换为 LaTeX

我是 LaTeX 新手,目前我正尝试用 LaTeX 绘制此图像。有人能帮我吗?这对我来说相当困难。

以下是图片:

在此处输入图片描述

答案1

一个选项是使用TikZ

\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{shadows,positioning,shapes}

\begin{document}

\noindent\begin{tikzpicture}[
mynode/.style={
  draw,
  text width=2.2cm,
  align=center
  },
>=latex
]

% the nodes
\node[mynode]
  (soc) 
  {Species ocurrence data};
\node[mynode,text width=1.4cm,ellipse,above right=of soc]
  (theory) {Theory};
\node[
  mynode,
  double copy shadow={shadow xshift=-1ex,shadow yshift=1ex},
  fill=white,
  right=4cm of soc
  ] 
  (ed) {Envionmental data};
\node[mynode,below right=of soc]
  (mf) {Modelling framework};
\node[mynode,below=of mf]
  (mpo) {Map of predicted occurrence};
% the arrows
\draw[->]
  (theory) to[out=180,in=90] 
    node[left=3pt] {Sample design} 
  (soc);
\draw[->]
  (soc) to[out=-90,in=180] 
    node[pos=0.3,right=3pt] {calibration} 
  ([yshift=5pt]mf.west);
\draw[->,dashed]
  ([yshift=-5pt]mf.west) to[out=180,in=180,looseness=1.3] 
    node[left=3pt] {validation} 
  (soc);
\draw[->]
  (theory) to[out=0,in=90] 
    node[pos=0.1,right=35pt] {Candidate variables} 
    node[pos=0.8,right=3pt] {Scale} 
  ([yshift=2ex]ed.north);
\draw[->]
  (ed) to[out=-90,in=0] 
  (mf);
\draw[->]
  (ed) to[out=-90,in=0] 
  (mpo);
\draw[->]
  (mf) --
  (mpo);
\end{tikzpicture}

\end{document}

在此处输入图片描述

相关内容