EricMarcon / dbmss
Showing 1 of 4 files from the diff.
Other files ignored by Codecov
NEWS.md has changed.
man/autoplot.Rd has changed.
DESCRIPTION has changed.

@@ -139,14 +139,25 @@
Loading
139 139
140 140
141 141
autoplot.wmppp <- function(object, ..., show.window = TRUE, 
142 -
                           ignore.types = length(unique(object$marks$PointType)) > 9,
142 +
                           MaxPointTypes = 6, Other = "Other",
143 143
                           main = NULL, xlab = NULL, ylab = NULL, LegendLabels = NULL, 
144 144
                           labelSize = "Weight", labelColor = "Type", palette="Set1",
145 145
                           windowColor = "black", windowFill = "transparent", alpha = 1)
146 146
{
147 147
  # Arrange the data
148 148
  thePoints <- with(object, data.frame(x, y, PointWeight=marks$PointWeight, PointType=marks$PointType))
149 -
  if (ignore.types) {thePoints$PointType <- as.factor("all")}
149 +
150 +
  # Control the point types to display
151 +
  NbPointTypes <- length(unique(thePoints$PointType))
152 +
  if (NbPointTypes > MaxPointTypes) {
153 +
    MostFrequentTypes <- sort(table(thePoints$PointType), decreasing = TRUE)[1:MaxPointTypes]
154 +
    MostFrequentTypes <- dimnames(MostFrequentTypes)[[1]]
155 +
    if (!(Other %in% levels(thePoints$PointType)))
156 +
      levels(thePoints$PointType) <- c(levels(thePoints$PointType), Other)
157 +
    for (i in 1:length(thePoints$PointType))
158 +
      if (!(thePoints$PointType[i] %in% MostFrequentTypes))
159 +
        thePoints$PointType[i] <- Other
160 +
  }
150 161
151 162
  # Plot the points
152 163
  thePlot <- ggplot2::ggplot(thePoints) +
Files Coverage
R 81.89%
src/CountNbd.cpp 67.22%
Project Totals (46 files) 79.83%

No yaml found.

Create your codecov.yml to customize your Codecov experience

Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading