Hello,

I've found the Chart::GGPlot library that looks great, but unfortunatey I cannot manage to use it because I get an error.

This is the sample code and the error.

Thank you if you can provide me with some indication.

Roberto

use Chart::GGPlot qw(:all); use PDL; my $df = Data::Frame->new( columns => [ x => pdl(1,2,3,8,7), y => pdl(260,34,64,23,6) ] ); my $p = ggplot( data => $df, mapping => aes(x => 'ws', y => 'wd') )->geom_point( alpha => 0.05 ); $p->show()

This is giving me the error:

Error in eval_tidy('ws', ...) : Bareword "ws" not allowed while "stric +t subs" in use at make_plot_test.pl line 10. at /usr/local/share/perl/5.26.1/Eval/Quosure.pm line 76. at /usr/local/share/perl/5.26.1/Data/Frame/Partial/Eval.pm line 41.

In reply to Error with Chart::GGPlot by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.