function set( v ) {
	/* eslint-disable no-invalid-this */
	var isBool = isBoolean( v );
	if ( !isBool && !isBooleanArray( v ) ) {
		throw new TypeError( format( 'invalid assignment. `%s` must be a boolean or an array of booleans. Value: `%s`.', 'xRug', v ) );
	}
	if ( isBool ) {
		v = [ v ];
	}
	debug( 'Current value: %s.', JSON.stringify( this._xRug ) );

	this._xRug = v;
	debug( 'New Value: %s.', JSON.stringify( this._xRug ) );

	this.emit( 'change' );
}
Sets a flag indicating whether to display a rug plot along the x-axis.

@private
@param {(boolean|BooleanArray)} v - boolean flag(s) indicating whether to display a rug plot along the x-axis
@throws {TypeError} must be a boolean or boolean array