WordSelectionFunction

WordSelectionFunction

is an option for WordCloud and other functions that specifies which words to use.

Details

  • The following settings can be given for WordSelectionFunction:
  • Automatican automatic selection
    True&no filtering
    fan arbitrary selection function f
  • The function f takes a word as the first argument and that word's weight as its second argument:
  • #Word or #1the word
    #Weight or #2the word's weight

Examples

open allclose all

Basic Examples  (1)

Select strings based on their length:

In[1]:=
Click for copyable input
Out[1]=

Applications  (2)

See Also

WordCloud  MaxItems  MaxFeatures  ScalingFunctions  PreprocessingRules  Select

Introduced in 2017
(11.2)