diff --git a/inst/doc/attribute.plots.html b/inst/doc/attribute.plots.html index 001d135..ae56e2c 100644 --- a/inst/doc/attribute.plots.html +++ b/inst/doc/attribute.plots.html @@ -67,10 +67,11 @@

Jake Conway and Nils Gehlenborg


For all examples the movies data set contained in the package will be used.

-
library(UpSetR)
-
## Warning: package 'UpSetR' was built under R version 3.2.3
-
library(ggplot2)
+
library(UpSetR)
+library(ggplot2)
## Warning: package 'ggplot2' was built under R version 3.2.3
+
## Need help getting started? Try the cookbook for R:
+## http://www.cookbook-r.com/Graphs/
library(grid)
 library(plyr)
 movies <- read.csv(system.file("extdata", "movies.csv", package = "UpSetR"), 
@@ -98,7 +99,7 @@ 

Example 1: Built-In Attribute Histogram

params = list("Drama"), active = T)), attribute.plots = list(gridrows = 50, plots = list(list(plot = histogram, x = "ReleaseDate", queries = F), list(plot = histogram, x = "AvgRating", queries = T)), ncols = 2))
-

+


@@ -111,7 +112,7 @@

Example 2: Built-In Attribute Scatter Plot

attribute.plots = list(gridrows = 45, plots = list(list(plot = scatter_plot, x = "ReleaseDate", y = "AvgRating", queries = T), list(plot = scatter_plot, x = "AvgRating", y = "Watches", queries = F)), ncols = 2), query.legend = "bottom") -

+


@@ -138,7 +139,7 @@

Example 3: Creating a Custom Attribute Plot

attribute.plots = list(gridrows = 45, plots = list(list(plot = myplot, x = "ReleaseDate", y = "AvgRating", queries = T), list(plot = another.plot, x = "AvgRating", y = "ReleaseDate", queries = F)), ncols = 2)) -

+


@@ -152,7 +153,7 @@

Example 4: Applying Everything at Once

x = "ReleaseDate", queries = F), list(plot = scatter_plot, x = "ReleaseDate", y = "AvgRating", queries = T), list(plot = myplot, x = "AvgRating", y = "Watches", queries = F)), ncols = 3)) -

+

diff --git a/inst/doc/basic.usage.html b/inst/doc/basic.usage.html index 4aa516a..6adfa68 100644 --- a/inst/doc/basic.usage.html +++ b/inst/doc/basic.usage.html @@ -76,7 +76,7 @@

Example 1: Choosing the Top Largest Sets and Plot Formatting

When not specifying specific sets, nsets selects the n largest sets from the data. number.angles determines the angle (in degrees) of the numbers above the intersection size bars. point.size changes the size of the circles in the matrix. name.size changes the size of the set names. line.size changes the size of the lines connecting the circles in the matrix.

upset(movies, nsets = 6, number.angles = 30, point.size = 5, name.size = 12, 
     line.size = 2)
-

+


@@ -84,28 +84,28 @@

Example 2: Choosing Specific Sets and Matrix Ordering

To look at specific sets, a vector of set names can be entered into the sets parameter. To change the proportions of the plot heights assigned to the matrix and intersection size bar plot, use the mb.ratio parameter entered as percentages. If no order is specified, the matrix will be ordered by degree, then frequency. The 3 plots below show different ways the data can be ordered.

upset(movies, sets = c("Action", "Adventure", "Comedy", "Drama", "Mystery", 
     "Thriller", "Romance", "War", "Western"), mb.ratio = c(0.55, 0.45), order.by = "freq")
-

+

upset(movies, sets = c("Action", "Adventure", "Comedy", "Drama", "Mystery", 
     "Thriller", "Romance", "War", "Western"), mb.ratio = c(0.55, 0.45), order.by = "degree")
-

+

upset(movies, sets = c("Action", "Adventure", "Comedy", "Drama", "Mystery", 
     "Thriller", "Romance", "War", "Western"), mb.ratio = c(0.55, 0.45), order.by = c("degree", 
     "freq"))
-

+


Example 3: Grouping of Intersections

Instead of the default method of grouping by degree, grouping by sets can be acheived using group.by. To set a cutoff for the number of intersections per group of sets use cutoff.

upset(movies, nintersects = 70, group.by = "sets", cutoff = 7)
-

+


Example 4: Displaying Empty Intersections

There may be times where an intersection you are looking for is not present in the matrix. This may be due to not showing enough intersections which can be changes with nintersects, or it may be because the intersection contains no elements. To additionally show empty intersections turn on empty.intersections.

upset(movies, empty.intersections = "on", order.by = "freq")
-

+

Example 5: Alternative Input Formats

@@ -119,9 +119,9 @@

Example 5: Alternative Input Formats

`two&three` = 1, `one&two&three` = 2)

Note that both of these inputs contain the same data. To generate an UpSet plot with these inputs set the data paramter equal to either fromList(listInput) or fromExpression(expressionInput). Use the examples from above to format the UpSet plot as you like.

upset(fromList(listInput), order.by = "freq")
-

+

upset(fromExpression(expressionInput), order.by = "freq")
-

+

diff --git a/inst/doc/queries.html b/inst/doc/queries.html index 428af6f..d5e8618 100644 --- a/inst/doc/queries.html +++ b/inst/doc/queries.html @@ -91,7 +91,7 @@

Example 1: Built-in Intersection Query

"Comedy", "Action"), color = "orange", active = T), list(query = intersects, params = list("Drama"), color = "red", active = F), list(query = intersects, params = list("Action", "Drama"), active = T))) -

+


@@ -100,7 +100,7 @@

Example 2: Built-In Elements Query

upset(movies, queries = list(list(query = elements, params = list("AvgRating", 
     3.5, 4.1), color = "blue", active = T), list(query = elements, params = list("ReleaseDate", 
     1980, 1990, 2000), color = "red", active = F)))
-

+


@@ -109,7 +109,7 @@

Example 3: Using Expression Parameter to Subset Intersection and Element Que
upset(movies, queries = list(list(query = intersects, params = list("Action", 
     "Drama"), active = T), list(query = elements, params = list("ReleaseDate", 
     1980, 1990, 2000), color = "red", active = F)), expression = "AvgRating > 3 & Watches > 100")
-

+


@@ -121,7 +121,7 @@

Example 4: Creating Custom Queries on Set Elements and Attributes

Applying the created query to the queries parameter.

upset(movies, queries = list(list(query = Myfunc, params = list(c(1970, 1980, 
     1990, 1999, 2000), 2.5), color = "blue", active = T)))
-

+


@@ -131,7 +131,7 @@

Example 5: Applying Everything at Once

1990, 1999, 2000), 2.5), color = "orange", active = T), list(query = intersects, params = list("Action", "Drama"), active = F), list(query = elements, params = list("ReleaseDate", 1980, 1990, 2000), color = "red", active = F)), expression = "AvgRating > 3 & Watches > 100") -

+