r - 如何在 Tikz 简单流程图中包含 .eps 图?

标签 r latex flowchart eps tikz

我想用类似于以下示例的 TikZ 包在 latex 中创建一个简单的流程图

http://www.texample.net/tikz/examples/simple-flow-chart/

但是,我想在流程图中(例如,在 {block}?

\documentclass{article}

\usepackage[latin1]{inputenc}
\usepackage{tikz}
\usetikzlibrary{shapes,arrows}
\begin{document}
\pagestyle{empty}


% Define block styles
\tikzstyle{decision} = [diamond, draw, fill=blue!20, 
    text width=4.5em, text badly centered, node distance=3cm, inner sep=0pt]
\tikzstyle{block} = [rectangle, draw, fill=blue!20, 
    text width=5em, text centered, rounded corners, minimum height=4em]
\tikzstyle{line} = [draw, -latex']
\tikzstyle{cloud} = [draw, ellipse,fill=red!20, node distance=3cm,
    minimum height=2em]

\begin{tikzpicture}[node distance = 2cm, auto]
    % Place nodes
    \node [block] (init) {initialize model};
    \node [cloud, left of=init] (expert) {expert};
    \node [cloud, right of=init] (system) {system};
    \node [block, below of=init] (identify) {identify candidate models};
    \node [block, below of=identify] (evaluate) {evaluate candidate models};
    \node [block, left of=evaluate, node distance=3cm] (update) {update model};
    \node [decision, below of=evaluate] (decide) {is best candidate better?};
    \node [block, below of=decide, node distance=3cm] (stop) {stop};
    % Draw edges
    \path [line] (init) -- (identify);
    \path [line] (identify) -- (evaluate);
    \path [line] (evaluate) -- (decide);
    \path [line] (decide) -| node [near start] {yes} (update);
    \path [line] (update) |- (identify);
    \path [line] (decide) -- node {no}(stop);
    \path [line,dashed] (expert) -- (init);
    \path [line,dashed] (system) -- (init);
    \path [line,dashed] (system) |- (evaluate);
\end{tikzpicture}


\end{document}

谢谢,

最佳答案

another example显示,可以使用 \includegraphicstikzpicture环境。你试过这个吗?

当然还有必须提到的 pgfplots .时间序列或其他数据可视化可以使用这个包来执行,而不是包括图形:)。

关于r - 如何在 Tikz 简单流程图中包含 .eps 图?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2997547/

相关文章:

r - 如何用月份的全名替换数字月份

arrays - 遍历 LaTeX 中的字符/字符串数组

r - 如何在 R 中使用 Sweave 在 xtable 标题中包含百分比符号

c++ - 可视化源

r - parse_date_time() 将 DayofYear 转换为日期

r - geom_segment 变长错误

vim - 使用 Vim,是否有更有效的方法来根据这个最佳实践来格式化 LaTeX 段落?

documentation - 我如何在流程图中表示中断(对于微 Controller )?

c# - 以编程方式创建流程图

css - 如何抑制 Shiny 图像的抗锯齿?