-
In CITATION file, change
citEntry()
tobibentry()
. -
Upgrade d3 to 7.8.2
-
Upgrade jquery to 3.6.4
-
Update d3panels to 1.8.4, with improvement to
formatAxis()
. This should fix Issue #77. -
Fix
qtlchartsversion()
to handle case like "0.14"
-
Upgrade D3 to 7.0.0 (and d3panels to 1.8.0)
-
Allow
iplot()
to not takey
argument (in which case we movex
toy
and takex
to be indices). (Issue #73) -
Add
horizontal
argument toiplotMap()
to lay out the chromosomes horizontally. This was already available as a chartOpts option, but this makes it easier. (Issue #67) -
Fix error in
itriplot()
for case of a single point (Issue #76)
-
Replaced use of d3-tip with custom tool tips, and upgraded to D3 version 5.
-
itriplot()
will now take labels from the column names of the probabilities,p
. Also has an option for grid lines. -
Allowed
title
as chart option iniplotMScanone()
,iplotScanone()
,iheatmap()
. -
Added
scat_title
chart option toipleiotropy()
, for a title on the scatterplot panel. -
Filled in some missing text in the help info for
iplotMScanone()
. -
Converted documentation to markdown.
-
Fixed use of
class()
, replacing constructions like"cross" %in% class(object)
withinherits(object, "cross")
.
-
Fix bug in
idotplot()
so that it works with a single group. -
Fix bug in
iplotMap()
so that the drop-down menu works in Firefox.
-
Update to use CoffeeScript v 2.2.2. Using babel to compile to ES5.
-
Switch from bower to yarn for javascript dependency management.
-
Revise
scat2scat()
so that the chart optionsxlab2
andylab2
can be vectors of length ofscat2data
, so that each dataset can have different x- and y-axis labels. Default is to take them from the column names of the datasets inscat2data
.
-
All charts can now take a
heading
and afooter
withinchartOpts
. The former will make an<h2>
heading above the figure; the latter will make a<div>
at the bottom. These are intended for stand-alone html files. -
In the
caption
chart option, now using.html()
rather than.text()
so that you can insert a bit of html (such as<b>
or<code>
).
- All charts now can take a
caption
withinchartOpts
which will show up as text below the figure. This is intended for stand-alone html files.
-
Added new tool for exploring pleiotropy between two traits,
ipleiotropy()
. -
Fixed X chromosome case in iplotScantwo, so that only relevant two-locus genotypes are shown.
-
Added new chart option
pointsize
foriplotCorr
. -
In the coffeescript functions, ensure that list arguments like
margin
have all of the necessary components. This avoid the problem of everything being messed up if for examplemargin
is specified within definingmargin.inner
. -
lodcharts
now includes a quantitative scale for position on the x-axis in the case of a single chromosome -
In
iplotScanone
andiplotScantwo
, in phenotype x genotype plots when switching between markers on the same chromosome, animate the movement of the points rather than destroying and re-creating the panel.
-
Rewrite underlying javascript to use new version of d3panels.
-
Add a new chart,
scat2scat
. The idea is to summarize each of a long series of scatterplots with a pair of numbers. Then a scatterplot of those summary statistics is linked to the underlying details: click on a point in the main scatterplot and have the underlying scatterplot be shown. -
Add a new chart,
itriplot
, for plotting trinomial probabilities, represented as points in an equilateral triangle. -
Refactor
iplotPXG
andidotplot
so thatidotplot
is the main function, andiplotPXG
calls it. -
Add some additional options, such as
horizontal
foriplotMap
andiplotPXG
. -
Change the name of some options, such as
linecolor
andlinewidth
iniplotCurves
(in place ofstrokecolor
andstrokewidth
). -
Add a
digits
argument for all plot functions, with the aim to reduce the size of the datasets included in the resulting charts. -
Removed the vignettes from the package (for complicated reasons); they're available at the R/qtlcharts website.
-
Fix proliferation of tool tips
-
For use with Shiny, clear SVG before drawing
- Skip Rmd and html tests run on CRAN (so faster, and because the Rmd tests won't work on Solaris as they need pandoc).
-
Changed license and author list in order to post the package on CRAN, https://cran.r-project.org
-
idotplot
andiplot
now use the names of the input data as individual IDs ifindID
is missing orNULL
.
- Fixed a bug in
iplotScanone
withpxgtype="ci"
. In the case of phenotypes with missing values, the confidence intervals were incorrect.
iplotCorr
has argumentscatterplots
that controls whether scatterplots will be shown when clicking on pixels in the heatmap. (Ifscatterplots=FALSE
, we skip the scatterplots.)
-
iplotMScanone
can plot just points (rather than curves) for the LOD scores and QTL effects in the lower and right-hand panels. -
Fix a bug in
iplotMScanone
(x-axis labels in right-hand plot weren't being shown)
- Included bower information, about the javascript libraries, within the source package.
- Got the package working with jsonlite, as htmlwidgets has now switched from RJSONIO to jsonlite, for converting R objects to JSON.
- Added
setScreenSize
function for controlling the default sizes of charts.
-
Added
idotplot
function for plotting a quantitative variable in different categories. (It's just likeiplotPXG
, but with data values not connected to a cross object.) -
Reorganized the d3panels code: just using
d3panels.min.js
andd3panels.min.css
rather than linking to js code for individual panels.
-
Refactored the entire package to use htmlwidgets. A big advantage is that the charts now work nicely within RStudio
-
To save a plot to a file, you now need to assign the result of a plot function to an object and then use the htmlwidgets function
saveWidget
.library(qtlcharts) library(qtl) data(hyper) hyper <- calc.genoprob(hyper, step=1) out <- scanone(hyper) chart <- iplotScanone(out, hyper) htmlwidgets::saveWidget(chart, file="hyper_scanone.html")
-
It's now simpler to include interactive charts within an R Markdown document. You simply make the plots in a code chunk in the way that you would at the R prompt. There's no longer a need to worry about
print_qtlcharts_resources()
orresults="asis"
. -
Separated out the basic panel functions as a separate repository, d3panels, to make it easier for them to be used separately from R/qtlcharts.