小编Mar*_*rie的帖子

LaTex/tikZ:如何从南2个节点到北1个节点绘制2个垂直箭头?

如何从变量2和变量3的节点向变量1绘制垂直箭头?

\documentclass[jou]{apa7}
\usepackage{tikz}
\usepackage{fixltx2e}
\usetikzlibrary{shapes, shadows, arrows}
\usetikzlibrary{positioning}
\tikzset{mynode/.style={shape=rectangle, draw, align=center}
}

\begin{document}

\begin{figure*}
\begin{tikzpicture}
\node[mynode, text width=7cm,minimum height=1cm] (v1){Variable 1};
\node[mynode,above left= 2cm of v1, text width = 4cm, minimum height = 1cm, xshift=4cm](v2) {Variable 2};
\node[mynode,above right= 2cm of v1, text width=4cm, minimum height = 1cm, xshift=-4cm] (v3){Variable 3};

\draw[-latex] (v2.south) -- (v1.north);
\draw[-latex] (v3.south) -- (v1.north);
 
\end{tikzpicture}
\end{figure*}

\end{document}
Run Code Online (Sandbox Code Playgroud)

使用上面的代码输出:

在此输入图像描述

期望的输出:

在此输入图像描述

latex tikz

3
推荐指数
1
解决办法
7449
查看次数

如何删除 LaTex 中行之间的额外空间?

右列的第 1 和第 2 个要点之间有额外的空间。我怎样才能删除它?提前致谢!

\documentclass[jou]{apa7}
\usepackage{tabularx}

\begin{document}
\begin{tabularx}{\linewidth}{XX} \hline
Example sentence Example sentence Example sentence Example sentence Example sentence Example sentence Example sentence Example sentence& $\bullet$ Example sentence Example sentence Example sentence Example sentence \\
& $\bullet$ Example sentence Example sentence Example sentence Example sentence Example sentence Example sentence \\
& $\bullet$ Example sentence \\ \hline

\end{tabularx}

\end{document}
Run Code Online (Sandbox Code Playgroud)

F

latex tabular

2
推荐指数
1
解决办法
460
查看次数

如何在R中将点重新编码为NA?

我有一个数据集,其中缺失值已用点编码。我想让缺失值空白(NA)。

这是数据框:

df <- data.frame(ITEM1 = c(6, 8, '.'),
                   ITEM2 = c(1, 6, 9),
                   ITEM3 = c(4, 2, 5),
                   ITEM4 = c('.', 3, 2),
                   ITEM5 = c(1, 6, 9)
)

df

ITEM1 ITEM2 ITEM3 ITEM4 ITEM5
1     6     1     4     .     1
2     8     6     2     3     6
3     .     9     5     2     9
> 
Run Code Online (Sandbox Code Playgroud)

r na

2
推荐指数
1
解决办法
88
查看次数

标签 统计

latex ×2

na ×1

r ×1

tabular ×1

tikz ×1