Skip to content

Commit

Permalink
remove dependency on gplots
Browse files Browse the repository at this point in the history
  • Loading branch information
braverock committed Feb 5, 2020
1 parent 197b6d8 commit c5a51c7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
1 change: 0 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ Suggests:
gamlss.dist,
robustbase,
quantreg,
gplots,
tinytest,
ggplot2,
RColorBrewer,
Expand Down
12 changes: 7 additions & 5 deletions vignettes/textplotPresentation-CRUG-2011.Rnw
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@

%\beamerdefaultoverlayspecification{<+->}
\begin{document}
\SweaveOpts{concordance=TRUE}
%\right] \right\rbrace \right\rangle \right( \begin{document}
% this has to be after \begin{document} to work
\setkeys{Gin}{width=1\textwidth}
Expand Down Expand Up @@ -210,7 +211,7 @@ ham1.downside
%%% Section --------------------------------------------------

\begin{frame}
\frametitle{\texttt{gplots:::textplot}}
\frametitle{\texttt{textplot}}
Gregory R. Warnes' package, \texttt{gplots}, includes the \texttt{textplot} function
\begin{itemize}
\item
Expand All @@ -221,18 +222,19 @@ Gregory R. Warnes' package, \texttt{gplots}, includes the \texttt{textplot} func
Creates a new \texttt{plot} and displays a table using the largest font that will fit in the plotting region
\item
Several other good things in the package, too
\item
testplot function ddded to PerformanceAnalytics
\end{itemize}
\end{frame}

\begin{frame}[fragile]
\frametitle{\texttt{gplots:::textplot} example}
\frametitle{\texttt{textplot} example}
\begin{figure}
\centering
\begin{scriptsize}
<<gplotstextplot,echo=TRUE,fig=TRUE>>=
library(gplots)
#args(gplots:::textplot)
gplots:::textplot(ham1.downside); box(col="lightblue")
#args(textplot)
textplot(ham1.downside); box(col="lightblue")
@
\end{scriptsize}
\end{figure}
Expand Down
Binary file modified vignettes/textplotPresentation-CRUG-2011.pdf
Binary file not shown.

0 comments on commit c5a51c7

Please sign in to comment.