lepennec / ggwordcloud
Showing 1 of 1 files from the diff.

@@ -638,17 +638,8 @@
Loading
638 638
  gw_pix <- max(1, ceiling(gw_inch * dev_dpi))
639 639
  gh_pix <- max(1, ceiling(gh_inch * dev_dpi))
640 640
641 -
  tg_inch <- textGrob(
642 -
    "a",
643 -
    gw_inch / 2, gh_inch / 2,
644 -
    default.units = "inch",
645 -
    gp = gpar(
646 -
      fontsize = 20 * .pt,
647 -
      fontfamily = "",
648 -
      fontface = 1,
649 -
      lineheight = 1.2
650 -
    )
651 -
  )
641 +
  tg_inch$x <- tg_inch$x + unit(gw_inch / 2, "inch")
642 +
  tg_inch$y <- tg_inch$y + unit(gh_inch / 2, "inch")
652 643
653 644
  # Compute the text mask
654 645
  mask <- compute_mask(tg_inch, gw_pix, gh_pix, dev_dpi,
@@ -718,30 +709,16 @@
Loading
718 709
    )
719 710
  )
720 711
721 -
  gw_inch_ <- convertWidth(grobWidth(tg_inch), "inch", TRUE) * 1.2
722 -
  gh_inch_ <- convertHeight(grobAscent(tg_inch), "inch", TRUE) * 1.2 +
712 +
  gw_inch <- convertWidth(grobWidth(tg_inch), "inch", TRUE) * 1.2
713 +
  gh_inch <- convertHeight(grobAscent(tg_inch), "inch", TRUE) * 1.2 +
723 714
    convertHeight(grobHeight(tg_inch), "inch", TRUE) * 1.2 +
724 715
    convertHeight(grobDescent(tg_inch), "inch", TRUE) * 1.2
725 716
726 -
  gw_inch <- gw_inch_
727 -
  gh_inch <- gh_inch_
728 -
729 717
  gw_pix <- max(1, ceiling(gw_inch * dev_dpi / grid_size)) * grid_size
730 718
  gh_pix <- max(1, ceiling(gh_inch * dev_dpi / grid_size)) * grid_size
731 719
732 -
  tg_inch <- textGrob(
733 -
    x$lab[i],
734 -
    gw_inch / 2, gh_inch / 2,
735 -
    default.units = "inch",
736 -
    rot = row$angle,
737 -
    just = c(hj, vj),
738 -
    gp = gpar(
739 -
      fontsize = row$size * row$corfactor* .pt,
740 -
      fontfamily = row$family,
741 -
      fontface = row$fontface,
742 -
      lineheight = row$lineheight
743 -
    )
744 -
  )
720 +
  tg_inch$x <- tg_inch$x + unit(gw_inch / 2, "inch")
721 +
  tg_inch$y <- tg_inch$y + unit(gh_inch / 2, "inch")
745 722
746 723
  # Compute the text mask
747 724
  mask <- compute_mask(
Files Coverage
R 91.59%
src/wordcloud_boxes.cpp 97.71%
Project Totals (5 files) 93.21%
1
comment: false
2

3
coverage:
4
  status:
5
    project:
6
      default:
7
        target: auto
8
        threshold: 1%
9
    patch:
10
      default:
11
        target: auto
12
        threshold: 1%
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