Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use gganimate 1.0.9 and ggraph 2.2.0 #138

Merged
merged 2 commits into from
Feb 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/quarto-book-macos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Install Quarto
uses: quarto-dev/quarto-actions/setup@v2
with:
version: 1.4.549
version: 1.4.550

- uses: r-lib/actions/setup-r@v2
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/quarto-book-ubuntu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Install Quarto
uses: quarto-dev/quarto-actions/setup@v2
with:
version: 1.4.549
version: 1.4.550

- uses: r-lib/actions/setup-r@v2
with:
Expand Down
7 changes: 3 additions & 4 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Imports:
geodata (>= 0.4.13),
gifski,
ggalluvial,
gganimate,
gganimate (>= 1.0.9),
ggbeeswarm,
ggbump,
ggdensity,
Expand All @@ -53,7 +53,7 @@ Imports:
ggmosaic,
ggnewscale,
ggplot2 (>= 3.5.0),
ggraph (>= 2.1.0),
ggraph (>= 2.2.0),
ggrepel,
ggridges,
ggsignif,
Expand Down Expand Up @@ -140,8 +140,7 @@ Imports:
LinkingTo: StanHeaders (>= 2.32.2), RcppParallel (>= 5.1.0)
Remotes:
davidsjoberg/ggbump,
davidsjoberg/ggstream,
thomasp85/ggraph
davidsjoberg/ggstream
Suggests:
quarto (>= 1.2),
rsconnect (>= 1.1.0)
Expand Down
Binary file added examples/latex/tikz-cone.pdf
Binary file not shown.
35 changes: 35 additions & 0 deletions examples/latex/tikz-cone.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
\documentclass[tikz]{standalone}
\usepackage{pgfplots}
\pgfplotsset{width=13cm,compat=1.18}
\begin{document}

\begin{tikzpicture}
\begin{axis}
[
% view={-45}{45},
view/h=40,
3d box=complete,
% grid=major,
colormap/viridis,
samples=20,
unit vector ratio=, %1 1 1,
z post scale=1,
z buffer=sort,
]

\addplot3 [surf,shader=interp,domain=-1:1] (
{x},
{y},
{x*y - sqrt((x^2-1)*(y^2-1))}
);

\addplot3 [surf,shader=interp,domain=-1:1] (
{x},
{y},
{x*y + sqrt((x^2-1)*(y^2-1))}
);

\end{axis}
\end{tikzpicture}

\end{document}
Loading