2016-07-26 5 views
1

私はthis animationを再作成しようとしています。私が望むのは、TikZの機械系とR/ggplotのプロットを持つことです。最後に、私はプレゼンテーションで、理想的にはRマークダウン/スウィーブプレゼンテーションでこれをすべて使いたいと思っています。ggplotアニメーションでTikZアニメーションを結合する

これも可能ですか?

\documentclass{standalone} 
\usepackage{tikz} 
\usetikzlibrary{calc, patterns, decorations.pathmorphing, decorations.markings} 

\begin{document} 
    \tikzstyle{blocksmall} = [draw, rectangle, minimum height = 0.25cm, minimum width = 0.25cm] 
    \tikzstyle{block} = [draw, rectangle, minimum height = 1cm, minimum width = 2cm] 
    \tikzstyle{spring} = [decorate, decoration = {zigzag, pre length = 0.3cm, post length = 0.3cm, segment length = 6}] 
    \tikzstyle{ground} = [fill, pattern = north east lines, draw = none, minimum width = 0.75cm, minimum height = 0.3cm] 
    \begin{tikzpicture} 
     \node [blocksmall] (u) {$u$}; 
     \node [block, right of = u, node distance = 3cm] (m) {$m$}; 
     \node (ground) [ground, anchor = north, yshift = -0.25cm, xshift = 0cm, minimum width = 7cm] at (m.south) {}; 
     \draw (ground.north east) -- (ground.north west); 
     \draw (m.south west) ++ (0.4cm,-0.125cm) circle (0.125cm) (m.south east) ++ (-0.4cm,-0.125cm) circle (0.125cm); 
     \draw [spring] (u) -- node[auto, yshift = 0.15cm] {$k$} (m); 
    \end{tikzpicture} 
\end{document} 

編集1:私が今まで持って何

は、機械系のは、TikZある私はこのアニメーションがRaphaël.jsのカスタムlinear.jsで行われていることがわかりました。すべてがfreq.htmlに組み込まれています。アニメーションSVGs Documentation of the animations-libraryを生成するために使用することができる新しいアニメーションライブラリがある

は、TikZの現在の開発版で:

答えて

0

は、それが遅く、ただ、将来のための1つの可能な解決策を言及するためにあるかもしれません。多分この情報があなたを助けるかもしれません。私はツールの使い方とできることはわかりませんが、アニメーショングラフ用にこのライブラリを使ったビーマープレゼンテーションを見ました。それはうまくいくようだった。

関連する問題