fix bugs before cran release
diff --git a/man/spec_boxplot.Rd b/man/spec_boxplot.Rd
index 820ade8..2c5dab6 100644
--- a/man/spec_boxplot.Rd
+++ b/man/spec_boxplot.Rd
@@ -44,9 +44,8 @@
\item{same_lim}{T/F. If x is a list of vectors, should all the plots be
plotted in the same range? Default is True.}
-\item{lim, xlim, ylim}{Manually specify plotting range in the form of
-\code{c(0, 10)}. \code{lim} is used in \code{spec_hist} and \code{spec_boxplot}; \code{xlim}
-and \code{ylim} are used in \code{spec_plot}.}
+\item{lim}{Manually specify plotting range in the form of
+\code{c(0, 10)}.}
\item{xaxt}{On/Off for xaxis text}
@@ -77,7 +76,8 @@
\description{
These functions helps you quickly generate sets of sparkline
style plots using base R plotting system. Currently, we support histogram,
-boxplot, and line. You can use them together with \code{column_spec} to
-generate inline plot in tables. By default, this function will save images
-in a folder called "kableExtra" and return the address of the file.
+boxplot, line, scatter and pointrange plots. You can use them together with
+\code{column_spec} to generate inline plot in tables. By default, this function
+will save images in a folder called "kableExtra" and return the address of
+the file.
}
diff --git a/man/spec_hist.Rd b/man/spec_hist.Rd
index 899dcaa..5c74fd4 100644
--- a/man/spec_hist.Rd
+++ b/man/spec_hist.Rd
@@ -32,6 +32,9 @@
\item{res}{The resolution of the plot. Default is 300.}
+\item{breaks}{The \code{break} option in \code{hist}. Default is "Sturges" but you can
+also provide a vector to manually specify break points.}
+
\item{same_lim}{T/F. If x is a list of vectors, should all the plots be
plotted in the same range? Default is True.}
@@ -62,7 +65,8 @@
\description{
These functions helps you quickly generate sets of sparkline
style plots using base R plotting system. Currently, we support histogram,
-boxplot, and line. You can use them together with \code{column_spec} to
-generate inline plot in tables. By default, this function will save images
-in a folder called "kableExtra" and return the address of the file.
+boxplot, line, scatter and pointrange plots. You can use them together with
+\code{column_spec} to generate inline plot in tables. By default, this function
+will save images in a folder called "kableExtra" and return the address of
+the file.
}
diff --git a/man/spec_plot.Rd b/man/spec_plot.Rd
index 829bae8..191cbf2 100644
--- a/man/spec_plot.Rd
+++ b/man/spec_plot.Rd
@@ -94,7 +94,8 @@
\description{
These functions helps you quickly generate sets of sparkline
style plots using base R plotting system. Currently, we support histogram,
-boxplot, and line. You can use them together with \code{column_spec} to
-generate inline plot in tables. By default, this function will save images
-in a folder called "kableExtra" and return the address of the file.
+boxplot, line, scatter and pointrange plots. You can use them together with
+\code{column_spec} to generate inline plot in tables. By default, this function
+will save images in a folder called "kableExtra" and return the address of
+the file.
}
diff --git a/man/spec_pointrange.Rd b/man/spec_pointrange.Rd
new file mode 100644
index 0000000..6b8c313
--- /dev/null
+++ b/man/spec_pointrange.Rd
@@ -0,0 +1,77 @@
+% Generated by roxygen2: do not edit by hand
+% Please edit documentation in R/mini_plots.R
+\name{spec_pointrange}
+\alias{spec_pointrange}
+\title{Helper functions to generate inline sparklines}
+\usage{
+spec_pointrange(
+ x,
+ xmin,
+ xmax,
+ vline = NULL,
+ width = 200,
+ height = 50,
+ res = 300,
+ same_lim = TRUE,
+ lim = NULL,
+ xaxt = "n",
+ yaxt = "n",
+ ann = FALSE,
+ col = "red",
+ cex = 0.3,
+ frame.plot = FALSE,
+ dir = if (is_latex()) rmd_files_dir() else tempdir(),
+ file = NULL,
+ file_type = if (is_latex()) "pdf" else "svg",
+ ...
+)
+}
+\arguments{
+\item{x, xmin, xmax}{A scalar value or List of scalar values for dot, left
+and right errorbar.}
+
+\item{vline}{A scalar value for where to draw a vertical line.}
+
+\item{width}{The width of the plot in pixel}
+
+\item{height}{The height of the plot in pixel}
+
+\item{res}{The resolution of the plot. Default is 300.}
+
+\item{same_lim}{T/F. If x is a list of vectors, should all the plots be
+plotted in the same range? Default is True.}
+
+\item{lim}{Manually specify plotting range in the form of
+\code{c(0, 10)}.}
+
+\item{xaxt}{On/Off for xaxis text}
+
+\item{yaxt}{On/Off for yaxis text}
+
+\item{ann}{On/Off for annotations (titles and axis titles)}
+
+\item{col}{Color for the fill of the histogram bar/boxplot box.}
+
+\item{cex}{size of the mean dot and error bar size.}
+
+\item{frame.plot}{T/F for whether to plot the plot frames.}
+
+\item{dir}{Directory of where the images will be saved.}
+
+\item{file}{File name. If not provided, a random name will be used}
+
+\item{file_type}{Graphic device. Can be character (e.g., \code{"pdf"})
+or a graphics device function (\code{grDevices::pdf}). This defaults
+to \code{"pdf"} if the rendering is in LaTeX and \code{"svg"} otherwise.
+for HTML output}
+
+\item{...}{extra parameters sending to \code{hist()}}
+}
+\description{
+These functions helps you quickly generate sets of sparkline
+style plots using base R plotting system. Currently, we support histogram,
+boxplot, line, scatter and pointrange plots. You can use them together with
+\code{column_spec} to generate inline plot in tables. By default, this function
+will save images in a folder called "kableExtra" and return the address of
+the file.
+}