{"repo":"Freguglia/ggfocus","free":true,"listed":false,"github":"https://github.com/Freguglia/ggfocus","clone":"git clone https://github.com/Freguglia/ggfocus.git","description":"A 'ggplot2' extension that provides tools for automatically creating scales to focus on subgroups of the data plotted without removing secondary information.","language":"R","stars":24,"topics":["visualization","data-visualization","ggplot-extension","r-package"],"license":"GPL-3.0","category":"analytics","readme_excerpt":"ggfocus Introduction In data analysis, one may want to visualize data for a specific subgroup of observations. Simply filtering out observations that do not belong to the subgroup may take the information out of context. Therefore, it is necessary to have tools that allow the analyst to draw attention (focus) on that subgroup within the complete relevant information available. While ggplot2 is a great tool for data visualization in general, constructing graphics that focus on those subgroups may need very troublesome manipulation of data and graphical scales (for example colors) together, i.e. setting low alpha for unimportant observations, coloring things in a way that highlights the focused subgroup, etc. ggfocus allows you to build graphics that focus on those specific subgroups by doing the scale manipulation automatically while keeping all the flexibility from ggplot. The idea behind this package is from this issue from tidyverse/ggplot2 . Installing ggfocus The package is available on CRAN, but you can also install the latest version from Github with pak . Usage The workflow of ggfocus is the same as any ggplot graphic with the addition of the focus scales family of functions: - scale color focus(focus levels, color focus = NULL, color other = \"gray\", palette focus = \"Set1\") - scale fill focus(focus levels, color focus = NULL, color other = \"gray\", palette focus = \"Set1\") - scale alpha focus(focus levels, alpha focus = 1, alpha other = .05) - scale linetype focus(focus ","default_branch":null,"files":null,"tree":[],"storefront":"/r/Freguglia","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Freguglia/ggfocus/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}